2012-03-14 07:48:50 +08:00
|
|
|
// Check that we error when -faltivec is specified on non-ppc platforms.
|
2012-03-14 07:45:51 +08:00
|
|
|
|
2012-10-10 04:46:28 +08:00
|
|
|
// RUN: %clang -target powerpc-unk-unk -faltivec -fsyntax-only %s
|
|
|
|
// RUN: %clang -target powerpc64-linux-gnu -faltivec -fsyntax-only %s
|
|
|
|
// RUN: %clang -target powerpc64-linux-gnu -maltivec -fsyntax-only %s
|
2012-03-14 07:45:51 +08:00
|
|
|
|
2012-03-14 09:17:52 +08:00
|
|
|
// RUN: %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
2012-10-10 04:46:28 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
// RUN: %clang -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
|
2012-03-14 09:17:52 +08:00
|
|
|
|
|
|
|
// CHECK: invalid argument '-faltivec' only allowed with 'ppc/ppc64'
|
2013-02-01 22:45:29 +08:00
|
|
|
|
|
|
|
// Check that -fno-altivec and -mno-altivec correctly disable the altivec
|
|
|
|
// target feature on powerpc.
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-1 %s
|
|
|
|
// CHECK-1: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-altivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-2 %s
|
|
|
|
// CHECK-2: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -faltivec -mno-altivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-3 %s
|
|
|
|
// CHECK-3: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -maltivec -fno-altivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-4 %s
|
|
|
|
// CHECK-4: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-altivec -faltivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-5 %s
|
|
|
|
// CHECK-5-NOT: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -maltivec -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-6 %s
|
|
|
|
// CHECK-6-NOT: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=7400 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-7 %s
|
|
|
|
// CHECK-7: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g4 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-8 %s
|
|
|
|
// CHECK-8: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=7450 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-9 %s
|
|
|
|
// CHECK-9: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g4+ -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-10 %s
|
|
|
|
// CHECK-10: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=970 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-11 %s
|
|
|
|
// CHECK-11: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g5 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-12 %s
|
|
|
|
// CHECK-12: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=pwr6 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-13 %s
|
|
|
|
// CHECK-13: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=pwr7 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-14 %s
|
|
|
|
// CHECK-14: "-target-feature" "-altivec"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=ppc64 -### -o %t.o 2>&1 | FileCheck --check-prefix=CHECK-15 %s
|
|
|
|
// CHECK-15: "-target-feature" "-altivec"
|
|
|
|
|
2013-02-02 02:44:19 +08:00
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-qpx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOQPX %s
|
|
|
|
// CHECK-NOQPX: "-target-feature" "-qpx"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-qpx -mqpx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-QPX %s
|
|
|
|
// CHECK-QPX-NOT: "-target-feature" "-qpx"
|
|
|
|
|
2013-03-28 16:38:53 +08:00
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOMFCRF %s
|
|
|
|
// CHECK-NOMFCRF: "-target-feature" "-mfocrf"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -mmfcrf -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-MFCRF %s
|
|
|
|
// CHECK-MFCRF: "-target-feature" "+mfocrf"
|
|
|
|
|
2013-03-28 21:51:36 +08:00
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPOPCNTD %s
|
|
|
|
// CHECK-NOPOPCNTD: "-target-feature" "-popcntd"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -mpopcntd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-POPCNTD %s
|
|
|
|
// CHECK-POPCNTD: "-target-feature" "+popcntd"
|
|
|
|
|
2013-03-30 21:47:44 +08:00
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-fprnd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOFPRND %s
|
|
|
|
// CHECK-NOFPRND: "-target-feature" "-fprnd"
|
|
|
|
|
|
|
|
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-fprnd -mfprnd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-FPRND %s
|
|
|
|
// CHECK-FPRND: "-target-feature" "+fprnd"
|
|
|
|
|