1 | // RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2>&1 | FileCheck -check-prefix=I386 %s |
2 | // I386: "-triple" "i386-unknown-unknown" |
3 | // I386: "-S" |
4 | // I386: "-disable-free" |
5 | // I386: "-mrelocation-model" "static" |
6 | // I386: "-mdisable-fp-elim" |
7 | // I386: "-masm-verbose" |
8 | // I386: "-munwind-tables" |
9 | // I386: "-Os" |
10 | // I386: "-fvisibility" |
11 | // I386: "hidden" |
12 | // I386: "-o" |
13 | // I386: clang-translation |
14 | |
15 | // RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2>&1 | \ |
16 | // RUN: FileCheck -check-prefix=YONAH %s |
17 | // RUN: %clang -target i386-apple-macosx10.11 -### -S %s -o %t.s 2>&1 | \ |
18 | // RUN: FileCheck -check-prefix=YONAH %s |
19 | // YONAH: "-target-cpu" |
20 | // YONAH: "yonah" |
21 | |
22 | // RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2>&1 | \ |
23 | // RUN: FileCheck -check-prefix=CORE2 %s |
24 | // RUN: %clang -target x86_64-apple-macosx10.11 -### -S %s -o %t.s 2>&1 | \ |
25 | // RUN: FileCheck -check-prefix=CORE2 %s |
26 | // CORE2: "-target-cpu" |
27 | // CORE2: "core2" |
28 | |
29 | // RUN: %clang -target x86_64h-apple-darwin -### -S %s -o %t.s 2>&1 | \ |
30 | // RUN: FileCheck -check-prefix=AVX2 %s |
31 | // RUN: %clang -target x86_64h-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ |
32 | // RUN: FileCheck -check-prefix=AVX2 %s |
33 | // AVX2: "-target-cpu" |
34 | // AVX2: "core-avx2" |
35 | |
36 | // RUN: %clang -target x86_64h-apple-darwin -march=skx -### %s -o /dev/null 2>&1 | \ |
37 | // RUN: FileCheck -check-prefix=X8664HSKX %s |
38 | // X8664HSKX: "-target-cpu" |
39 | // X8664HSKX: "skx" |
40 | |
41 | // RUN: %clang -target i386-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ |
42 | // RUN: FileCheck -check-prefix=PENRYN %s |
43 | // RUN: %clang -target x86_64-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ |
44 | // RUN: FileCheck -check-prefix=PENRYN %s |
45 | // PENRYN: "-target-cpu" |
46 | // PENRYN: "penryn" |
47 | |
48 | |
49 | // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 2>&1 | \ |
50 | // RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s |
51 | // ARMV7_DEFAULT: clang |
52 | // ARMV7_DEFAULT: "-cc1" |
53 | // ARMV7_DEFAULT-NOT: "-msoft-float" |
54 | // ARMV7_DEFAULT: "-mfloat-abi" "soft" |
55 | // ARMV7_DEFAULT-NOT: "-msoft-float" |
56 | // ARMV7_DEFAULT: "-x" "c" |
57 | |
58 | // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 \ |
59 | // RUN: -msoft-float 2>&1 | FileCheck -check-prefix=ARMV7_SOFTFLOAT %s |
60 | // ARMV7_SOFTFLOAT: clang |
61 | // ARMV7_SOFTFLOAT: "-cc1" |
62 | // ARMV7_SOFTFLOAT: "-target-feature" |
63 | // ARMV7_SOFTFLOAT: "-neon" |
64 | // ARMV7_SOFTFLOAT: "-msoft-float" |
65 | // ARMV7_SOFTFLOAT: "-mfloat-abi" "soft" |
66 | // ARMV7_SOFTFLOAT: "-x" "c" |
67 | |
68 | // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 \ |
69 | // RUN: -mhard-float 2>&1 | FileCheck -check-prefix=ARMV7_HARDFLOAT %s |
70 | // ARMV7_HARDFLOAT: clang |
71 | // ARMV7_HARDFLOAT: "-cc1" |
72 | // ARMV7_HARDFLOAT-NOT: "-msoft-float" |
73 | // ARMV7_HARDFLOAT: "-mfloat-abi" "hard" |
74 | // ARMV7_HARDFLOAT-NOT: "-msoft-float" |
75 | // ARMV7_HARDFLOAT: "-x" "c" |
76 | |
77 | // RUN: %clang -target arm64-apple-ios10 -### -S %s -arch arm64 2>&1 | \ |
78 | // RUN: FileCheck -check-prefix=ARM64-APPLE %s |
79 | // ARM64-APPLE: -munwind-table |
80 | |
81 | // RUN: %clang -target arm64-apple-ios10 -### -ffreestanding -S %s -arch arm64 2>&1 | \ |
82 | // RUN: FileCheck -check-prefix=ARM64-FREESTANDING-APPLE %s |
83 | // |
84 | // RUN: %clang -target arm64-apple-ios10 -### -fno-unwind-tables -ffreestanding -S %s -arch arm64 2>&1 | \ |
85 | // RUN: FileCheck -check-prefix=ARM64-FREESTANDING-APPLE %s |
86 | // |
87 | // ARM64-FREESTANDING-APPLE-NOT: -munwind-table |
88 | |
89 | // RUN: %clang -target arm64-apple-ios10 -### -funwind-tables -S %s -arch arm64 2>&1 | \ |
90 | // RUN: FileCheck -check-prefix=ARM64-EXPLICIT-UWTABLE-APPLE %s |
91 | // |
92 | // RUN: %clang -target arm64-apple-ios10 -### -ffreestanding -funwind-tables -S %s -arch arm64 2>&1 | \ |
93 | // RUN: FileCheck -check-prefix=ARM64-EXPLICIT-UWTABLE-APPLE %s |
94 | // |
95 | // ARM64-EXPLICIT-UWTABLE-APPLE: -munwind-table |
96 | |
97 | // RUN: %clang -target arm64-apple-ios10 -fno-exceptions -### -S %s -arch arm64 2>&1 | \ |
98 | // RUN: FileCheck -check-prefix=ARM64-APPLE-EXCEP %s |
99 | // ARM64-APPLE-EXCEP-NOT: -munwind-table |
100 | |
101 | // RUN: %clang -target armv7k-apple-watchos4.0 -### -S %s -arch armv7k 2>&1 | \ |
102 | // RUN: FileCheck -check-prefix=ARMV7K-APPLE %s |
103 | // ARMV7K-APPLE: -munwind-table |
104 | |
105 | // RUN: %clang -target arm-linux -### -S %s -march=armv5e 2>&1 | \ |
106 | // RUN: FileCheck -check-prefix=ARMV5E %s |
107 | // ARMV5E: clang |
108 | // ARMV5E: "-cc1" |
109 | // ARMV5E: "-target-cpu" "arm1022e" |
110 | |
111 | // RUN: %clang -target arm-linux -mtp=cp15 -### -S %s -arch armv7 2>&1 | \ |
112 | // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s |
113 | // ARMv7_THREAD_POINTER-HARD: "-target-feature" "+read-tp-hard" |
114 | |
115 | // RUN: %clang -target arm-linux -mtp=soft -### -S %s -arch armv7 2>&1 | \ |
116 | // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_SOFT %s |
117 | // ARMv7_THREAD_POINTER_SOFT-NOT: "-target-feature" "+read-tp-hard" |
118 | |
119 | // RUN: %clang -target arm-linux -### -S %s -arch armv7 2>&1 | \ |
120 | // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_NON %s |
121 | // ARMv7_THREAD_POINTER_NON-NOT: "-target-feature" "+read-tp-hard" |
122 | |
123 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
124 | // RUN: -### -S %s -mcpu=G5 2>&1 | FileCheck -check-prefix=PPCG5 %s |
125 | // PPCG5: clang |
126 | // PPCG5: "-cc1" |
127 | // PPCG5: "-target-cpu" "g5" |
128 | |
129 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
130 | // RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPWR7 %s |
131 | // PPCPWR7: clang |
132 | // PPCPWR7: "-cc1" |
133 | // PPCPWR7: "-target-cpu" "pwr7" |
134 | |
135 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
136 | // RUN: -### -S %s -mcpu=power8 2>&1 | FileCheck -check-prefix=PPCPWR8 %s |
137 | // PPCPWR8: clang |
138 | // PPCPWR8: "-cc1" |
139 | // PPCPWR8: "-target-cpu" "pwr8" |
140 | |
141 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
142 | // RUN: -### -S %s -mcpu=a2q 2>&1 | FileCheck -check-prefix=PPCA2Q %s |
143 | // PPCA2Q: clang |
144 | // PPCA2Q: "-cc1" |
145 | // PPCA2Q: "-target-cpu" "a2q" |
146 | |
147 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
148 | // RUN: -### -S %s -mcpu=630 2>&1 | FileCheck -check-prefix=PPC630 %s |
149 | // PPC630: clang |
150 | // PPC630: "-cc1" |
151 | // PPC630: "-target-cpu" "pwr3" |
152 | |
153 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
154 | // RUN: -### -S %s -mcpu=power3 2>&1 | FileCheck -check-prefix=PPCPOWER3 %s |
155 | // PPCPOWER3: clang |
156 | // PPCPOWER3: "-cc1" |
157 | // PPCPOWER3: "-target-cpu" "pwr3" |
158 | |
159 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
160 | // RUN: -### -S %s -mcpu=pwr3 2>&1 | FileCheck -check-prefix=PPCPWR3 %s |
161 | // PPCPWR3: clang |
162 | // PPCPWR3: "-cc1" |
163 | // PPCPWR3: "-target-cpu" "pwr3" |
164 | |
165 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
166 | // RUN: -### -S %s -mcpu=power4 2>&1 | FileCheck -check-prefix=PPCPOWER4 %s |
167 | // PPCPOWER4: clang |
168 | // PPCPOWER4: "-cc1" |
169 | // PPCPOWER4: "-target-cpu" "pwr4" |
170 | |
171 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
172 | // RUN: -### -S %s -mcpu=pwr4 2>&1 | FileCheck -check-prefix=PPCPWR4 %s |
173 | // PPCPWR4: clang |
174 | // PPCPWR4: "-cc1" |
175 | // PPCPWR4: "-target-cpu" "pwr4" |
176 | |
177 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
178 | // RUN: -### -S %s -mcpu=power5 2>&1 | FileCheck -check-prefix=PPCPOWER5 %s |
179 | // PPCPOWER5: clang |
180 | // PPCPOWER5: "-cc1" |
181 | // PPCPOWER5: "-target-cpu" "pwr5" |
182 | |
183 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
184 | // RUN: -### -S %s -mcpu=pwr5 2>&1 | FileCheck -check-prefix=PPCPWR5 %s |
185 | // PPCPWR5: clang |
186 | // PPCPWR5: "-cc1" |
187 | // PPCPWR5: "-target-cpu" "pwr5" |
188 | |
189 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
190 | // RUN: -### -S %s -mcpu=power5x 2>&1 | FileCheck -check-prefix=PPCPOWER5X %s |
191 | // PPCPOWER5X: clang |
192 | // PPCPOWER5X: "-cc1" |
193 | // PPCPOWER5X: "-target-cpu" "pwr5x" |
194 | |
195 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
196 | // RUN: -### -S %s -mcpu=pwr5x 2>&1 | FileCheck -check-prefix=PPCPWR5X %s |
197 | // PPCPWR5X: clang |
198 | // PPCPWR5X: "-cc1" |
199 | // PPCPWR5X: "-target-cpu" "pwr5x" |
200 | |
201 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
202 | // RUN: -### -S %s -mcpu=power6 2>&1 | FileCheck -check-prefix=PPCPOWER6 %s |
203 | // PPCPOWER6: clang |
204 | // PPCPOWER6: "-cc1" |
205 | // PPCPOWER6: "-target-cpu" "pwr6" |
206 | |
207 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
208 | // RUN: -### -S %s -mcpu=pwr6 2>&1 | FileCheck -check-prefix=PPCPWR6 %s |
209 | // PPCPWR6: clang |
210 | // PPCPWR6: "-cc1" |
211 | // PPCPWR6: "-target-cpu" "pwr6" |
212 | |
213 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
214 | // RUN: -### -S %s -mcpu=power6x 2>&1 | FileCheck -check-prefix=PPCPOWER6X %s |
215 | // PPCPOWER6X: clang |
216 | // PPCPOWER6X: "-cc1" |
217 | // PPCPOWER6X: "-target-cpu" "pwr6x" |
218 | |
219 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
220 | // RUN: -### -S %s -mcpu=pwr6x 2>&1 | FileCheck -check-prefix=PPCPWR6X %s |
221 | // PPCPWR6X: clang |
222 | // PPCPWR6X: "-cc1" |
223 | // PPCPWR6X: "-target-cpu" "pwr6x" |
224 | |
225 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
226 | // RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPOWER7 %s |
227 | // PPCPOWER7: clang |
228 | // PPCPOWER7: "-cc1" |
229 | // PPCPOWER7: "-target-cpu" "pwr7" |
230 | |
231 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
232 | // RUN: -### -S %s -mcpu=powerpc 2>&1 | FileCheck -check-prefix=PPCPOWERPC %s |
233 | // PPCPOWERPC: clang |
234 | // PPCPOWERPC: "-cc1" |
235 | // PPCPOWERPC: "-target-cpu" "ppc" |
236 | |
237 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
238 | // RUN: -### -S %s -mcpu=powerpc64 2>&1 | FileCheck -check-prefix=PPCPOWERPC64 %s |
239 | // PPCPOWERPC64: clang |
240 | // PPCPOWERPC64: "-cc1" |
241 | // PPCPOWERPC64: "-target-cpu" "ppc64" |
242 | |
243 | // RUN: %clang -target powerpc64-unknown-linux-gnu \ |
244 | // RUN: -### -S %s 2>&1 | FileCheck -check-prefix=PPC64NS %s |
245 | // PPC64NS: clang |
246 | // PPC64NS: "-cc1" |
247 | // PPC64NS: "-target-cpu" "ppc64" |
248 | |
249 | // RUN: %clang -target powerpc-fsl-linux -### -S %s \ |
250 | // RUN: -mcpu=e500mc 2>&1 | FileCheck -check-prefix=PPCE500MC %s |
251 | // PPCE500MC: clang |
252 | // PPCE500MC: "-cc1" |
253 | // PPCE500MC: "-target-cpu" "e500mc" |
254 | |
255 | // RUN: %clang -target powerpc64-fsl-linux -### -S \ |
256 | // RUN: %s -mcpu=e5500 2>&1 | FileCheck -check-prefix=PPCE5500 %s |
257 | // PPCE5500: clang |
258 | // PPCE5500: "-cc1" |
259 | // PPCE5500: "-target-cpu" "e5500" |
260 | |
261 | // RUN: %clang -target amd64-unknown-openbsd5.2 -### -S %s 2>&1 | \ |
262 | // RUN: FileCheck -check-prefix=AMD64 %s |
263 | // AMD64: clang |
264 | // AMD64: "-cc1" |
265 | // AMD64: "-triple" |
266 | // AMD64: "amd64-unknown-openbsd5.2" |
267 | // AMD64: "-munwind-tables" |
268 | |
269 | // RUN: %clang -target amd64--mingw32 -### -S %s 2>&1 | \ |
270 | // RUN: FileCheck -check-prefix=AMD64-MINGW %s |
271 | // AMD64-MINGW: clang |
272 | // AMD64-MINGW: "-cc1" |
273 | // AMD64-MINGW: "-triple" |
274 | // AMD64-MINGW: "amd64-unknown-windows-gnu" |
275 | // AMD64-MINGW: "-munwind-tables" |
276 | |
277 | // RUN: %clang -target i686-linux-android -### -S %s 2>&1 \ |
278 | // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \ |
279 | // RUN: | FileCheck --check-prefix=ANDROID-X86 %s |
280 | // ANDROID-X86: clang |
281 | // ANDROID-X86: "-target-cpu" "i686" |
282 | // ANDROID-X86: "-target-feature" "+ssse3" |
283 | |
284 | // RUN: %clang -target x86_64-linux-android -### -S %s 2>&1 \ |
285 | // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \ |
286 | // RUN: | FileCheck --check-prefix=ANDROID-X86_64 %s |
287 | // ANDROID-X86_64: clang |
288 | // ANDROID-X86_64: "-target-cpu" "x86-64" |
289 | // ANDROID-X86_64: "-target-feature" "+sse4.2" |
290 | // ANDROID-X86_64: "-target-feature" "+popcnt" |
291 | |
292 | // RUN: %clang -target mips-linux-gnu -### -S %s 2>&1 | \ |
293 | // RUN: FileCheck -check-prefix=MIPS %s |
294 | // MIPS: clang |
295 | // MIPS: "-cc1" |
296 | // MIPS: "-target-cpu" "mips32r2" |
297 | // MIPS: "-mfloat-abi" "hard" |
298 | |
299 | // RUN: %clang -target mipsisa32r6-linux-gnu -### -S %s 2>&1 | \ |
300 | // RUN: FileCheck -check-prefix=MIPSR6 %s |
301 | // MIPSR6: clang |
302 | // MIPSR6: "-cc1" |
303 | // MIPSR6: "-target-cpu" "mips32r6" |
304 | // MIPSR6: "-mfloat-abi" "hard" |
305 | |
306 | // RUN: %clang -target mipsel-linux-gnu -### -S %s 2>&1 | \ |
307 | // RUN: FileCheck -check-prefix=MIPSEL %s |
308 | // MIPSEL: clang |
309 | // MIPSEL: "-cc1" |
310 | // MIPSEL: "-target-cpu" "mips32r2" |
311 | // MIPSEL: "-mfloat-abi" "hard" |
312 | |
313 | // RUN: %clang -target mipsisa32r6el-linux-gnu -### -S %s 2>&1 | \ |
314 | // RUN: FileCheck -check-prefix=MIPSR6EL %s |
315 | // MIPSR6EL: clang |
316 | // MIPSR6EL: "-cc1" |
317 | // MIPSR6EL: "-target-cpu" "mips32r6" |
318 | // MIPSR6EL: "-mfloat-abi" "hard" |
319 | |
320 | // RUN: %clang -target mipsel-linux-android -### -S %s 2>&1 | \ |
321 | // RUN: FileCheck -check-prefix=MIPSEL-ANDROID %s |
322 | // MIPSEL-ANDROID: clang |
323 | // MIPSEL-ANDROID: "-cc1" |
324 | // MIPSEL-ANDROID: "-target-cpu" "mips32" |
325 | // MIPSEL-ANDROID: "-target-feature" "+fpxx" |
326 | // MIPSEL-ANDROID: "-target-feature" "+nooddspreg" |
327 | // MIPSEL-ANDROID: "-mfloat-abi" "hard" |
328 | |
329 | // RUN: %clang -target mipsel-linux-android -### -S %s -mcpu=mips32r6 2>&1 | \ |
330 | // RUN: FileCheck -check-prefix=MIPSEL-ANDROID-R6 %s |
331 | // MIPSEL-ANDROID-R6: clang |
332 | // MIPSEL-ANDROID-R6: "-cc1" |
333 | // MIPSEL-ANDROID-R6: "-target-cpu" "mips32r6" |
334 | // MIPSEL-ANDROID-R6: "-target-feature" "+fp64" |
335 | // MIPSEL-ANDROID-R6: "-target-feature" "+nooddspreg" |
336 | // MIPSEL-ANDROID-R6: "-mfloat-abi" "hard" |
337 | |
338 | // RUN: %clang -target mips64-linux-gnu -### -S %s 2>&1 | \ |
339 | // RUN: FileCheck -check-prefix=MIPS64 %s |
340 | // MIPS64: clang |
341 | // MIPS64: "-cc1" |
342 | // MIPS64: "-target-cpu" "mips64r2" |
343 | // MIPS64: "-mfloat-abi" "hard" |
344 | |
345 | // RUN: %clang -target mipsisa64r6-linux-gnu -### -S %s 2>&1 | \ |
346 | // RUN: FileCheck -check-prefix=MIPS64R6 %s |
347 | // MIPS64R6: clang |
348 | // MIPS64R6: "-cc1" |
349 | // MIPS64R6: "-target-cpu" "mips64r6" |
350 | // MIPS64R6: "-mfloat-abi" "hard" |
351 | |
352 | // RUN: %clang -target mips64el-linux-gnu -### -S %s 2>&1 | \ |
353 | // RUN: FileCheck -check-prefix=MIPS64EL %s |
354 | // MIPS64EL: clang |
355 | // MIPS64EL: "-cc1" |
356 | // MIPS64EL: "-target-cpu" "mips64r2" |
357 | // MIPS64EL: "-mfloat-abi" "hard" |
358 | |
359 | // RUN: %clang -target mipsisa64r6el-linux-gnu -### -S %s 2>&1 | \ |
360 | // RUN: FileCheck -check-prefix=MIPS64R6EL %s |
361 | // MIPS64R6EL: clang |
362 | // MIPS64R6EL: "-cc1" |
363 | // MIPS64R6EL: "-target-cpu" "mips64r6" |
364 | // MIPS64R6EL: "-mfloat-abi" "hard" |
365 | |
366 | // RUN: %clang -target mips64-linux-gnuabi64 -### -S %s 2>&1 | \ |
367 | // RUN: FileCheck -check-prefix=MIPS64-GNUABI64 %s |
368 | // MIPS64-GNUABI64: clang |
369 | // MIPS64-GNUABI64: "-cc1" |
370 | // MIPS64-GNUABI64: "-target-cpu" "mips64r2" |
371 | // MIPS64-GNUABI64: "-target-abi" "n64" |
372 | // MIPS64-GNUABI64: "-mfloat-abi" "hard" |
373 | |
374 | // RUN: %clang -target mipsisa64r6-linux-gnuabi64 -### -S %s 2>&1 | \ |
375 | // RUN: FileCheck -check-prefix=MIPS64R6-GNUABI64 %s |
376 | // MIPS64R6-GNUABI64: clang |
377 | // MIPS64R6-GNUABI64: "-cc1" |
378 | // MIPS64R6-GNUABI64: "-target-cpu" "mips64r6" |
379 | // MIPS64R6-GNUABI64: "-target-abi" "n64" |
380 | // MIPS64R6-GNUABI64: "-mfloat-abi" "hard" |
381 | |
382 | // RUN: %clang -target mips64el-linux-gnuabi64 -### -S %s 2>&1 | \ |
383 | // RUN: FileCheck -check-prefix=MIPS64EL-GNUABI64 %s |
384 | // MIPS64EL-GNUABI64: clang |
385 | // MIPS64EL-GNUABI64: "-cc1" |
386 | // MIPS64EL-GNUABI64: "-target-cpu" "mips64r2" |
387 | // MIPS64EL-GNUABI64: "-target-abi" "n64" |
388 | // MIPS64EL-GNUABI64: "-mfloat-abi" "hard" |
389 | |
390 | // RUN: %clang -target mipsisa64r6el-linux-gnuabi64 -### -S %s 2>&1 | \ |
391 | // RUN: FileCheck -check-prefix=MIPS64R6EL-GNUABI64 %s |
392 | // MIPS64R6EL-GNUABI64: clang |
393 | // MIPS64R6EL-GNUABI64: "-cc1" |
394 | // MIPS64R6EL-GNUABI64: "-target-cpu" "mips64r6" |
395 | // MIPS64R6EL-GNUABI64: "-target-abi" "n64" |
396 | // MIPS64R6EL-GNUABI64: "-mfloat-abi" "hard" |
397 | |
398 | // RUN: %clang -target mips64-linux-gnuabin32 -### -S %s 2>&1 | \ |
399 | // RUN: FileCheck -check-prefix=MIPSN32 %s |
400 | // MIPSN32: clang |
401 | // MIPSN32: "-cc1" |
402 | // MIPSN32: "-target-cpu" "mips64r2" |
403 | // MIPSN32: "-target-abi" "n32" |
404 | // MIPSN32: "-mfloat-abi" "hard" |
405 | |
406 | // RUN: %clang -target mipsisa64r6-linux-gnuabin32 -### -S %s 2>&1 | \ |
407 | // RUN: FileCheck -check-prefix=MIPSN32R6 %s |
408 | // MIPSN32R6: clang |
409 | // MIPSN32R6: "-cc1" |
410 | // MIPSN32R6: "-target-cpu" "mips64r6" |
411 | // MIPSN32R6: "-target-abi" "n32" |
412 | // MIPSN32R6: "-mfloat-abi" "hard" |
413 | |
414 | // RUN: %clang -target mips64el-linux-gnuabin32 -### -S %s 2>&1 | \ |
415 | // RUN: FileCheck -check-prefix=MIPSN32EL %s |
416 | // MIPSN32EL: clang |
417 | // MIPSN32EL: "-cc1" |
418 | // MIPSN32EL: "-target-cpu" "mips64r2" |
419 | // MIPSN32EL: "-target-abi" "n32" |
420 | // MIPSN32EL: "-mfloat-abi" "hard" |
421 | |
422 | // RUN: %clang -target mipsisa64r6el-linux-gnuabin32 -### -S %s 2>&1 | \ |
423 | // RUN: FileCheck -check-prefix=MIPSN32R6EL %s |
424 | // MIPSN32R6EL: clang |
425 | // MIPSN32R6EL: "-cc1" |
426 | // MIPSN32R6EL: "-target-cpu" "mips64r6" |
427 | // MIPSN32R6EL: "-target-abi" "n32" |
428 | // MIPSN32R6EL: "-mfloat-abi" "hard" |
429 | |
430 | // RUN: %clang -target mips64el-linux-android -### -S %s 2>&1 | \ |
431 | // RUN: FileCheck -check-prefix=MIPS64EL-ANDROID %s |
432 | // MIPS64EL-ANDROID: clang |
433 | // MIPS64EL-ANDROID: "-cc1" |
434 | // MIPS64EL-ANDROID: "-target-cpu" "mips64r6" |
435 | // MIPS64EL-ANDROID: "-mfloat-abi" "hard" |
436 | |