Lines Matching +full:- +full:- +full:target
1 // Check that we error when -faltivec is specified on non-ppc platforms.
3 // RUN: %clang -target powerpc-unk-unk -faltivec -fsyntax-only %s
4 // RUN: %clang -target powerpc64-linux-gnu -faltivec -fsyntax-only %s
5 // RUN: %clang -target powerpc64-linux-gnu -maltivec -fsyntax-only %s
7 // RUN: not %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
8 // RUN: not %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
9 // RUN: not %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
10 // RUN: not %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
11 // RUN: not %clang -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
12 // RUN: not %clang -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
13 // RUN: not %clang -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
15 // check -msoft-float option for ppc32
16 // RUN: %clang -target powerpc-unknown-linux-gnu %s -msoft-float -### -o %t.o 2>&1 | FileCheck --ch…
17 // CHECK-SOFTFLOAT: "-target-feature" "+soft-float"
19 // check -mfloat-abi=soft option for ppc32
20 // RUN: %clang -target powerpc-unknown-linux-gnu %s -mfloat-abi=soft -### -o %t.o 2>&1 | FileCheck …
21 // CHECK-FLOATABISOFT: "-target-feature" "+soft-float"
23 // check -mhard-float option for ppc32
24 // RUN: %clang -target powerpc-unknown-linux-gnu %s -mhard-float -### -o %t.o 2>&1 | FileCheck --ch…
25 // CHECK-HARDFLOAT-NOT: "-target-feature" "+soft-float"
27 // check -mfloat-abi=hard option for ppc32
28 // RUN: %clang -target powerpc-unknown-linux-gnu %s -mfloat-abi=hard -### -o %t.o 2>&1 | FileCheck …
29 // CHECK-FLOATABIHARD-NOT: "-target-feature" "+soft-float"
31 // check combine -mhard-float -msoft-float option for ppc32
32 // RUN: %clang -target powerpc-unknown-linux-gnu %s -mhard-float -msoft-float -### -o %t.o 2>&1 | F…
33 // CHECK-HARDSOFT: "-target-feature" "+soft-float"
35 // check combine -msoft-float -mhard-float option for ppc32
36 // RUN: %clang -target powerpc-unknown-linux-gnu %s -msoft-float -mhard-float -### -o %t.o 2>&1 | F…
37 // CHECK-SOFTHARD-NOT: "-target-feature" "+soft-float"
39 // check -mfloat-abi=x option
40 // RUN: %clang -target powerpc-unknown-linux-gnu %s -mfloat-abi=x -### -o %t.o 2>&1 | FileCheck --c…
41 // CHECK-ERRMSG: error: invalid float ABI '-mfloat-abi=x'
43 // check -msoft-float option for ppc64
44 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -msoft-float -### -o %t.o 2>&1 | FileCheck --…
45 // CHECK-SOFTFLOAT64: error: invalid float ABI 'soft float is not supported for ppc64'
47 // check -mfloat-abi=soft option for ppc64
48 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mfloat-abi=soft -### -o %t.o 2>&1 | FileChec…
49 // CHECK-FLOATABISOFT64: error: invalid float ABI 'soft float is not supported for ppc64'
51 // check -msoft-float option for ppc64
52 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -msoft-float -### -o %t.o 2>&1 | FileCheck …
53 // CHECK-SOFTFLOAT64le: error: invalid float ABI 'soft float is not supported for ppc64'
55 // check -mfloat-abi=soft option for ppc64
56 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -mfloat-abi=soft -### -o %t.o 2>&1 | FileCh…
57 // CHECK-FLOATABISOFT64le: error: invalid float ABI 'soft float is not supported for ppc64'
59 // CHECK: invalid argument '-faltivec' only allowed with 'ppc/ppc64/ppc64le'
61 // Check that -fno-altivec and -mno-altivec correctly disable the altivec
62 // target feature on powerpc.
64 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -### -o %t.o 2>&1 | FileCheck --…
65 // CHECK-1: "-target-feature" "-altivec"
67 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-altivec -### -o %t.o 2>&1 | FileCheck --…
68 // CHECK-2: "-target-feature" "-altivec"
70 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -faltivec -mno-altivec -### -o %t.o 2>&1 | Fi…
71 // CHECK-3: "-target-feature" "-altivec"
73 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -maltivec -fno-altivec -### -o %t.o 2>&1 | Fi…
74 // CHECK-4: "-target-feature" "-altivec"
76 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-altivec -faltivec -### -o %t.o 2>&1 | Fi…
77 // CHECK-5-NOT: "-target-feature" "-altivec"
79 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -maltivec -### -o %t.o 2>&1 | Fi…
80 // CHECK-6-NOT: "-target-feature" "-altivec"
82 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=7400 -### -o %t.o 2>&1 | F…
83 // CHECK-7: "-target-feature" "-altivec"
85 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g4 -### -o %t.o 2>&1 | Fil…
86 // CHECK-8: "-target-feature" "-altivec"
88 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=7450 -### -o %t.o 2>&1 | F…
89 // CHECK-9: "-target-feature" "-altivec"
91 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g4+ -### -o %t.o 2>&1 | Fi…
92 // CHECK-10: "-target-feature" "-altivec"
94 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=970 -### -o %t.o 2>&1 | Fi…
95 // CHECK-11: "-target-feature" "-altivec"
97 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=g5 -### -o %t.o 2>&1 | Fil…
98 // CHECK-12: "-target-feature" "-altivec"
100 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=pwr6 -### -o %t.o 2>&1 | F…
101 // CHECK-13: "-target-feature" "-altivec"
103 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=pwr7 -### -o %t.o 2>&1 | F…
104 // CHECK-14: "-target-feature" "-altivec"
106 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=pwr8 -### -o %t.o 2>&1 | F…
107 // CHECK-15: "-target-feature" "-altivec"
109 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -fno-altivec -mcpu=ppc64 -### -o %t.o 2>&1 | …
110 // CHECK-16: "-target-feature" "-altivec"
112 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-qpx -### -o %t.o 2>&1 | FileCheck -check…
113 // CHECK-NOQPX: "-target-feature" "-qpx"
115 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-qpx -mqpx -### -o %t.o 2>&1 | FileCheck …
116 // CHECK-QPX-NOT: "-target-feature" "-qpx"
118 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -### -o %t.o 2>&1 | FileCheck -che…
119 // CHECK-NOMFCRF: "-target-feature" "-mfocrf"
121 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -mmfcrf -### -o %t.o 2>&1 | FileCh…
122 // CHECK-MFCRF: "-target-feature" "+mfocrf"
124 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -### -o %t.o 2>&1 | FileCheck -chec…
125 // CHECK-NOISEL: "-target-feature" "-isel"
127 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -misel -### -o %t.o 2>&1 | FileChec…
128 // CHECK-ISEL: "-target-feature" "+isel"
130 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -### -o %t.o 2>&1 | FileCheck -c…
131 // CHECK-NOPOPCNTD: "-target-feature" "-popcntd"
133 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -mpopcntd -### -o %t.o 2>&1 | Fi…
134 // CHECK-POPCNTD: "-target-feature" "+popcntd"
136 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-fprnd -### -o %t.o 2>&1 | FileCheck -che…
137 // CHECK-NOFPRND: "-target-feature" "-fprnd"
139 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-fprnd -mfprnd -### -o %t.o 2>&1 | FileCh…
140 // CHECK-FPRND: "-target-feature" "+fprnd"
142 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-cmpb -### -o %t.o 2>&1 | FileCheck -chec…
143 // CHECK-NOCMPB: "-target-feature" "-cmpb"
145 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-cmpb -mcmpb -### -o %t.o 2>&1 | FileChec…
146 // CHECK-CMPB: "-target-feature" "+cmpb"
148 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-vsx -### -o %t.o 2>&1 | FileCheck -check…
149 // CHECK-NOVSX: "-target-feature" "-vsx"
151 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-vsx -mvsx -### -o %t.o 2>&1 | FileCheck …
152 // CHECK-VSX: "-target-feature" "+vsx"
154 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-power8-vector -### -o %t.o 2>&1 | FileCh…
155 // CHECK-NOP8VECTOR: "-target-feature" "-power8-vector"
157 …/ RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-power8-vector -mpower8-vector -### -o %t…
158 // CHECK-P8VECTOR: "-target-feature" "+power8-vector"
160 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-crbits -### -o %t.o 2>&1 | FileCheck -ch…
161 // CHECK-NOCRBITS: "-target-feature" "-crbits"
163 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-crbits -mcrbits -### -o %t.o 2>&1 | File…
164 // CHECK-CRBITS: "-target-feature" "+crbits"
166 …/ RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-invariant-function-descriptors -### -o %…
167 // CHECK-NOINVFUNCDESC: "-target-feature" "-invariant-function-descriptors"
169 …-target powerpc64-unknown-linux-gnu %s -mno-invariant-function-descriptors -minvariant-function-de…
170 // CHECK-INVFUNCDESC: "-target-feature" "+invariant-function-descriptors"
173 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o -no-integrated-as 2>&1 | FileChe…
174 // CHECK_BE_AS_ARGS: "-mppc64"
175 // CHECK_BE_AS_ARGS: "-many"
177 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o -no-integrated-as 2>&1 | FileC…
178 // CHECK_LE_AS_ARGS: "-mppc64"
179 // CHECK_LE_AS_ARGS: "-many"
180 // CHECK_LE_AS_ARGS: "-mlittle-endian"
183 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=C…
186 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck -check-prefix…
190 // RUN: %clang -target powerpc-unknown-linux-gnu %s -### -fopenmp=libomp -o %t.o 2>&1 | FileCheck -…
191 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -fopenmp=libomp -o %t.o 2>&1 | FileCheck…
192 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -fopenmp=libomp -o %t.o 2>&1 | FileChe…
193 // CHECK_OPENMP_TLS-NOT: "-fnoopenmp-use-tls"