1 // Check passing options to the assembler for MIPS targets.
2 //
3 // RUN: %clang -target mips-linux-gnu -### \
4 // RUN:   -no-integrated-as -c %s 2>&1 \
5 // RUN:   | FileCheck -check-prefix=MIPS32R2-EB-AS %s
6 // RUN: %clang -target mipsel-linux-gnu -### \
7 // RUN:   -no-integrated-as -c -EB %s 2>&1 \
8 // RUN:   | FileCheck -check-prefix=MIPS32R2-EB-AS %s
9 // MIPS32R2-EB-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
10 // MIPS32R2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
11 //
12 // RUN: %clang -target mips-linux-gnu -### \
13 // RUN:   -no-integrated-as -fPIC -c %s 2>&1 \
14 // RUN:   | FileCheck -check-prefix=MIPS32R2-EB-PIC %s
15 // MIPS32R2-EB-PIC: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-call_nonpic" "-EB"
16 // MIPS32R2-EB-PIC: "-KPIC"
17 //
18 // RUN: %clang -target mipsel-linux-gnu -### \
19 // RUN:   -no-integrated-as -c %s 2>&1 \
20 // RUN:   | FileCheck -check-prefix=MIPS32R2-DEF-EL-AS %s
21 // MIPS32R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL"
22 //
23 // RUN: %clang -target mips64-linux-gnu -### \
24 // RUN:   -no-integrated-as -c %s 2>&1 \
25 // RUN:   | FileCheck -check-prefix=MIPS64R2-EB-AS %s
26 // MIPS64R2-EB-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
27 //
28 // RUN: %clang -target mips64el-linux-gnu -### \
29 // RUN:   -no-integrated-as -c %s 2>&1 \
30 // RUN:   | FileCheck -check-prefix=MIPS64R2-DEF-EL-AS %s
31 // MIPS64R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64"  "-mno-shared" "-KPIC" "-EL"
32 //
33 // RUN: %clang -target mips-linux-gnu -mabi=eabi -### \
34 // RUN:   -no-integrated-as -c %s 2>&1 \
35 // RUN:   | FileCheck -check-prefix=MIPS-EABI %s
36 // MIPS-EABI: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "eabi" "-mno-shared" "-call_nonpic" "-EB"
37 //
38 // RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
39 // RUN:   -no-integrated-as -c %s 2>&1 \
40 // RUN:   | FileCheck -check-prefix=MIPS-N32 %s
41 // MIPS-N32: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "n32" "-mno-shared" "-call_nonpic" "-EB"
42 //
43 // RUN: %clang -target mipsel-linux-gnu -mabi=32 -### \
44 // RUN:   -no-integrated-as -c %s 2>&1 \
45 // RUN:   | FileCheck -check-prefix=MIPS32R2-EL-AS %s
46 // RUN: %clang -target mips-linux-gnu -mabi=32 -### \
47 // RUN:   -no-integrated-as -c %s -EL 2>&1 \
48 // RUN:   | FileCheck -check-prefix=MIPS32R2-EL-AS %s
49 // MIPS32R2-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL"
50 //
51 // RUN: %clang -target mips64el-linux-gnu -mabi=64 -### \
52 // RUN:   -no-integrated-as -c %s 2>&1 \
53 // RUN:   | FileCheck -check-prefix=MIPS64R2-EL-AS %s
54 // MIPS64R2-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EL"
55 //
56 // RUN: %clang -target mips-linux-gnu -march=mips32r2 -### \
57 // RUN:   -no-integrated-as -c %s 2>&1 \
58 // RUN:   | FileCheck -check-prefix=MIPS-32R2 %s
59 // MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
60 //
61 // RUN: %clang -target mips-linux-gnu -march=p5600 -### \
62 // RUN:   -no-integrated-as -c %s 2>&1 \
63 // RUN:   | FileCheck -check-prefix=MIPS-P5600 %s
64 // MIPS-P5600: as{{(.exe)?}}" "-march" "p5600" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
65 //
66 // RUN: %clang -target mips64-linux-gnu -march=octeon -### \
67 // RUN:   -no-integrated-as -c %s 2>&1 \
68 // RUN:   | FileCheck -check-prefix=MIPS-OCTEON %s
69 // MIPS-OCTEON: as{{(.exe)?}}" "-march" "octeon" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
70 //
71 // RUN: %clang -target mips-linux-gnu -mips1 -### \
72 // RUN:   -no-integrated-as -c %s 2>&1 \
73 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-1 %s
74 // MIPS-ALIAS-1: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
75 //
76 // RUN: %clang -target mips-linux-gnu -mips2 -### \
77 // RUN:   -no-integrated-as -c %s 2>&1 \
78 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-2 %s
79 // MIPS-ALIAS-2: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
80 //
81 // RUN: %clang -target mips-linux-gnu -mips3 -### \
82 // RUN:   -no-integrated-as -c %s 2>&1 \
83 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-3 %s
84 // MIPS-ALIAS-3: as{{(.exe)?}}" "-march" "mips3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
85 //
86 // RUN: %clang -target mips-linux-gnu -mips4 -### \
87 // RUN:   -no-integrated-as -c %s 2>&1 \
88 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-4 %s
89 // MIPS-ALIAS-4: as{{(.exe)?}}" "-march" "mips4" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
90 //
91 // RUN: %clang -target mips-linux-gnu -mips5 -### \
92 // RUN:   -no-integrated-as -c %s 2>&1 \
93 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-5 %s
94 // MIPS-ALIAS-5: as{{(.exe)?}}" "-march" "mips5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
95 //
96 // RUN: %clang -target mips-linux-gnu -mips32 -### \
97 // RUN:   -no-integrated-as -c %s 2>&1 \
98 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-32 %s
99 // MIPS-ALIAS-32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
100 //
101 // RUN: %clang -target mips-linux-gnu -mips32r2 -### \
102 // RUN:   -no-integrated-as -c %s 2>&1 \
103 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-32R2 %s
104 // MIPS-ALIAS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
105 //
106 // RUN: %clang -target mips-linux-gnu -mips32r3 -### \
107 // RUN:   -no-integrated-as -c %s 2>&1 \
108 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-32R3 %s
109 // MIPS-ALIAS-32R3: as{{(.exe)?}}" "-march" "mips32r3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
110 //
111 // RUN: %clang -target mips-linux-gnu -mips32r5 -### \
112 // RUN:   -no-integrated-as -c %s 2>&1 \
113 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-32R5 %s
114 // MIPS-ALIAS-32R5: as{{(.exe)?}}" "-march" "mips32r5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
115 //
116 // RUN: %clang -target mips-linux-gnu -mips32r6 -### \
117 // RUN:   -no-integrated-as -c %s 2>&1 \
118 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-32R6 %s
119 // MIPS-ALIAS-32R6: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
120 //
121 // RUN: %clang -target mips64-linux-gnu -mips64 -### \
122 // RUN:   -no-integrated-as -c %s 2>&1 \
123 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-64 %s
124 // MIPS-ALIAS-64: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
125 //
126 // RUN: %clang -target mips64-linux-gnu -mips64r2 -### \
127 // RUN:   -no-integrated-as -c %s 2>&1 \
128 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-64R2 %s
129 // MIPS-ALIAS-64R2: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
130 //
131 // RUN: %clang -target mips64-linux-gnu -mips64r3 -### \
132 // RUN:   -no-integrated-as -c %s 2>&1 \
133 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-64R3 %s
134 // MIPS-ALIAS-64R3: as{{(.exe)?}}" "-march" "mips64r3" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
135 //
136 // RUN: %clang -target mips64-linux-gnu -mips64r5 -### \
137 // RUN:   -no-integrated-as -c %s 2>&1 \
138 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-64R5 %s
139 // MIPS-ALIAS-64R5: as{{(.exe)?}}" "-march" "mips64r5" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
140 //
141 // RUN: %clang -target mips64-linux-gnu -mips64r6 -### \
142 // RUN:   -no-integrated-as -c %s 2>&1 \
143 // RUN:   | FileCheck -check-prefix=MIPS-ALIAS-64R6 %s
144 // MIPS-ALIAS-64R6: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
145 //
146 // RUN: %clang -target mips-linux-gnu -mno-mips16 -mips16 -### \
147 // RUN:   -no-integrated-as -c %s 2>&1 \
148 // RUN:   | FileCheck -check-prefix=MIPS-16 %s
149 // MIPS-16: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mips16"
150 //
151 // RUN: %clang -target mips-linux-gnu -mips16 -mno-mips16 -### \
152 // RUN:   -no-integrated-as -c %s 2>&1 \
153 // RUN:   | FileCheck -check-prefix=MIPS-N16 %s
154 // MIPS-N16: as{{(.exe)?}}"
155 // MIPS-N16: -no-mips16
156 //
157 // RUN: %clang -target mips-linux-gnu -mno-micromips -mmicromips -### \
158 // RUN:   -no-integrated-as -c %s 2>&1 \
159 // RUN:   | FileCheck -check-prefix=MIPS-MICRO %s
160 // MIPS-MICRO: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmicromips"
161 //
162 // RUN: %clang -target mips-linux-gnu -mmicromips -mno-micromips -### \
163 // RUN:   -no-integrated-as -c %s 2>&1 \
164 // RUN:   | FileCheck -check-prefix=MIPS-NMICRO %s
165 // MIPS-NMICRO: as{{(.exe)?}}"
166 // MIPS-NMICRO-NOT: {{[A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmicromips"
167 //
168 // RUN: %clang -target mips-linux-gnu -mno-dsp -mdsp -### \
169 // RUN:   -no-integrated-as -c %s 2>&1 \
170 // RUN:   | FileCheck -check-prefix=MIPS-DSP %s
171 // MIPS-DSP: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdsp"
172 //
173 // RUN: %clang -target mips-linux-gnu -mdsp -mno-dsp -### \
174 // RUN:   -no-integrated-as -c %s 2>&1 \
175 // RUN:   | FileCheck -check-prefix=MIPS-NDSP %s
176 // MIPS-NDSP: as{{(.exe)?}}"
177 // MIPS-NDSP-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdsp"
178 //
179 // RUN: %clang -target mips-linux-gnu -mno-dspr2 -mdspr2 -### \
180 // RUN:   -no-integrated-as -c %s 2>&1 \
181 // RUN:   | FileCheck -check-prefix=MIPS-DSPR2 %s
182 // MIPS-DSPR2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdspr2"
183 //
184 // RUN: %clang -target mips-linux-gnu -mdspr2 -mno-dspr2 -### \
185 // RUN:   -no-integrated-as -c %s 2>&1 \
186 // RUN:   | FileCheck -check-prefix=MIPS-NDSPR2 %s
187 // MIPS-NDSPR2: as{{(.exe)?}}"
188 // MIPS-NDSPR2-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdspr2"
189 //
190 // RUN: %clang -target mips-linux-gnu -mnan=legacy -mnan=2008 -### \
191 // RUN:   -no-integrated-as -c %s 2>&1 \
192 // RUN:   | FileCheck -check-prefix=MIPS-NAN2008 %s
193 // MIPS-NAN2008: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mnan=2008"
194 //
195 // RUN: %clang -target mips-linux-gnu -mnan=2008 -mnan=legacy -### \
196 // RUN:   -no-integrated-as -c %s 2>&1 \
197 // RUN:   | FileCheck -check-prefix=MIPS-NAN-LEGACY %s
198 // MIPS-NAN-LEGACY: as{{(.exe)?}}"
199 // MIPS-NAN-LEGACY-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mnan={{.*}}"
200 //
201 // RUN: %clang -target mips-linux-gnu -mfp64 -mfpxx -mfp32 -### \
202 // RUN:   -no-integrated-as -c %s 2>&1 \
203 // RUN:   | FileCheck -check-prefix=MIPS-MFP32 %s
204 // MIPS-MFP32: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp32"
205 //
206 // RUN: %clang -target mips-linux-gnu -mfp32 -mfp64 -mfpxx -### \
207 // RUN:   -no-integrated-as -c %s 2>&1 \
208 // RUN:   | FileCheck -check-prefix=MIPS-MFPXX %s
209 // MIPS-MFPXX: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfpxx"
210 //
211 // RUN: %clang -target mips-linux-gnu -mfpxx -mfp32 -mfp64 -### \
212 // RUN:   -no-integrated-as -c %s 2>&1 \
213 // RUN:   | FileCheck -check-prefix=MIPS-MFP64 %s
214 // MIPS-MFP64: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp64"
215 //
216 // RUN: %clang -target mips-linux-gnu -mno-msa -mmsa -### \
217 // RUN:   -no-integrated-as -c %s 2>&1 \
218 // RUN:   | FileCheck -check-prefix=MIPS-MSA %s
219 // MIPS-MSA: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmsa"
220 //
221 // RUN: %clang -target mips-linux-gnu -mmsa -mno-msa -### \
222 // RUN:   -no-integrated-as -c %s 2>&1 \
223 // RUN:   | FileCheck -check-prefix=MIPS-NMSA %s
224 // MIPS-NMSA: as{{(.exe)?}}"
225 // MIPS-NMSA-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmsa"
226 //
227 // We've already tested MIPS32r2 and MIPS64r2 thoroughly. Do minimal tests on
228 // the remaining CPU's since it was possible to pass on a -mabi with no value
229 // when the CPU name is absent from a StringSwitch in getMipsCPUAndABI()
230 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips1 \
231 // RUN:   2>&1 | FileCheck -check-prefix=MIPS1-EB-AS %s
232 // MIPS1-EB-AS: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
233 // MIPS1-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
234 //
235 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips2 \
236 // RUN:   2>&1 | FileCheck -check-prefix=MIPS2-EB-AS %s
237 // MIPS2-EB-AS: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
238 // MIPS2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
239 //
240 // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips3 \
241 // RUN:   2>&1 | FileCheck -check-prefix=MIPS3-EB-AS %s
242 // MIPS3-EB-AS: as{{(.exe)?}}" "-march" "mips3" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
243 //
244 // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips4 \
245 // RUN:   2>&1 | FileCheck -check-prefix=MIPS4-EB-AS %s
246 // MIPS4-EB-AS: as{{(.exe)?}}" "-march" "mips4" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
247 //
248 // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips5 \
249 // RUN:   2>&1 | FileCheck -check-prefix=MIPS5-EB-AS %s
250 // MIPS5-EB-AS: as{{(.exe)?}}" "-march" "mips5" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
251 //
252 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32 \
253 // RUN:   2>&1 | FileCheck -check-prefix=MIPS32-EB-AS %s
254 // MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
255 // MIPS32-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
256 //
257 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32r6 \
258 // RUN:   2>&1 | FileCheck -check-prefix=MIPS32R6-EB-AS %s
259 // MIPS32R6-EB-AS: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
260 // MIPS32R6-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
261 //
262 // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64 \
263 // RUN:   2>&1 | FileCheck -check-prefix=MIPS64-EB-AS %s
264 // MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
265 //
266 // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64r6 \
267 // RUN:   2>&1 | FileCheck -check-prefix=MIPS64R6-EB-AS %s
268 // MIPS64R6-EB-AS: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-mno-shared" "-KPIC" "-EB"
269 //
270 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -mhard-float -c %s 2>&1 \
271 // RUN:   | FileCheck -check-prefix=HARDFLOAT --implicit-check-not=-msoft-float %s
272 // HARDFLOAT: as{{(.exe)?}}"
273 // HARDFLOAT: -mhard-float
274 //
275 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mhard-float -msoft-float -c %s 2>&1 \
276 // RUN:   | FileCheck -check-prefix=SOFTFLOAT --implicit-check-not=-mhard-float %s
277 // SOFTFLOAT: as{{(.exe)?}}"
278 // SOFTFLOAT: -msoft-float
279 //
280 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mno-odd-spreg -modd-spreg -c %s 2>&1 \
281 // RUN:   | FileCheck -check-prefix=ODDSPREG --implicit-check-not=-mno-odd-spreg %s
282 // ODDSPREG: as{{(.exe)?}}"
283 // ODDSPREG: -modd-spreg
284 //
285 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -modd-spreg -mno-odd-spreg -c %s 2>&1 \
286 // RUN:   | FileCheck -check-prefix=NOODDSPREG --implicit-check-not=-modd-spreg %s
287 // NOODDSPREG: as{{(.exe)?}}"
288 // NOODDSPREG: -mno-odd-spreg
289 //
290 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mdouble-float -msingle-float -c %s 2>&1 \
291 // RUN:   | FileCheck -check-prefix=SINGLEFLOAT --implicit-check-not=-mdouble-float %s
292 // SINGLEFLOAT: as{{(.exe)?}}"
293 // SINGLEFLOAT: -msingle-float
294 //
295 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -mdouble-float -c %s 2>&1 \
296 // RUN:   | FileCheck -check-prefix=DOUBLEFLOAT --implicit-check-not=-msingle-float %s
297 // DOUBLEFLOAT: as{{(.exe)?}}"
298 // DOUBLEFLOAT: -mdouble-float
299 //
300 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
301 // RUN:   | FileCheck -check-prefix=SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
302 // SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
303 // SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
304 //
305 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
306 // RUN:   | FileCheck -check-prefix=SOFTFLOAT-EXPLICIT-FPXX %s
307 // SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
308 // SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
309 // SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
310 //
311 // RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
312 // RUN:   | FileCheck -check-prefix=MTI-SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
313 // MTI-SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
314 // MTI-SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
315 //
316 // RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
317 // RUN:   | FileCheck -check-prefix=MTI-SOFTFLOAT-EXPLICIT-FPXX %s
318 // MTI-SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
319 // MTI-SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
320 // MTI-SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
321 //
322 // RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
323 // RUN:   | FileCheck -check-prefix=IMG-SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
324 // IMG-SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
325 // IMG-SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
326 //
327 // RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
328 // RUN:   | FileCheck -check-prefix=IMG-SOFTFLOAT-EXPLICIT-FPXX %s
329 // IMG-SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
330 // IMG-SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
331 // IMG-SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
332 //
333 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
334 // RUN:   | FileCheck -check-prefix=SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
335 // SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
336 // SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
337 //
338 // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
339 // RUN:   | FileCheck -check-prefix=SINGLEFLOAT-EXPLICIT-FPXX %s
340 // SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
341 // SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
342 // SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
343 //
344 // RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
345 // RUN:   | FileCheck -check-prefix=MTI-SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
346 // MTI-SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
347 // MTI-SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
348 //
349 // RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
350 // RUN:   | FileCheck -check-prefix=MTI-SINGLEFLOAT-EXPLICIT-FPXX %s
351 // MTI-SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
352 // MTI-SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
353 // MTI-SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
354 //
355 // RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
356 // RUN:   | FileCheck -check-prefix=IMG-SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
357 // IMG-SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
358 // IMG-SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
359 //
360 // RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
361 // RUN:   | FileCheck -check-prefix=IMG-SINGLEFLOAT-EXPLICIT-FPXX %s
362 // IMG-SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
363 // IMG-SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
364 // IMG-SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
365