llvm-capstone/clang/test/Driver/aix-vec_extabi.c
Fangrui Song 68dd51421f [Driver] Simplify handling of -mabi=vec-default -mabi=vec-extabi
And fix a minor issue that -mabi=vec-extabi -mabi=vec-default should not pass
"-bplugin_opt:-vec-extabi" to ld.
2023-04-24 22:59:54 -07:00

17 lines
798 B
C

// RUN: %clang -### -target powerpc-unknown-aix -S %s 2>&1 | \
// RUN: FileCheck %s --implicit-check-not=vec-extabi
// RUN: %clang -### -target powerpc-unknown-aix -S -maltivec %s 2>&1 | \
// RUN: FileCheck %s --implicit-check-not=vec-extabi
// RUN: %clang -### -target powerpc-unknown-aix -S -maltivec -mabi=vec-default %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=DFLTABI --implicit-check-not=vec-extabi
// RUN: %clang -### -target powerpc-unknown-aix -S -mabi=vec-extabi %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=EXTABI
// RUN: %clang -### -target powerpc-unknown-aix -S -maltivec -mabi=vec-extabi %s 2>&1 | \
// RUN: FileCheck %s --check-prefix=EXTABI
/
// EXTABI: "-cc1"
// EXTABI-SAME: "-mabi=vec-extabi"
// DFLTABI: "-cc1"
// DFLTABI-NOT: "-mabi=vec-extabi"