|
131 | 131 | // VBMI2: "-target-feature" "+avx512vbmi2" |
132 | 132 | // NO-VBMI2: "-target-feature" "-avx512vbmi2" |
133 | 133 |
|
134 | | -// RUN: %clang -target i386-linux-gnu -mavx512vp2intersect %s -### 2>&1 | FileCheck -check-prefix=VP2INTERSECT %s |
135 | | -// RUN: %clang -target i386-linux-gnu -mno-avx512vp2intersect %s -### 2>&1 | FileCheck -check-prefix=NO-VP2INTERSECT %s |
| 134 | +// RUN: %clang --target=i386-linux-gnu -mavx512vp2intersect %s -### 2>&1 | FileCheck -check-prefix=VP2INTERSECT %s |
| 135 | +// RUN: %clang --target=i386-linux-gnu -mno-avx512vp2intersect %s -### 2>&1 | FileCheck -check-prefix=NO-VP2INTERSECT %s |
136 | 136 | // VP2INTERSECT: "-target-feature" "+avx512vp2intersect" |
137 | 137 | // NO-VP2INTERSECT: "-target-feature" "-avx512vp2intersect" |
138 | 138 |
|
|
146 | 146 | // RDPRU: "-target-feature" "+rdpru" |
147 | 147 | // NO-RDPRU: "-target-feature" "-rdpru" |
148 | 148 |
|
149 | | -// RUN: %clang -target i386-linux-gnu -mretpoline %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE %s |
150 | | -// RUN: %clang -target i386-linux-gnu -mno-retpoline %s -### 2>&1 | FileCheck -check-prefix=NO-RETPOLINE %s |
| 149 | +// RUN: %clang --target=i386-linux-gnu -mretpoline %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE %s |
| 150 | +// RUN: %clang --target=i386-linux-gnu -mno-retpoline %s -### 2>&1 | FileCheck -check-prefix=NO-RETPOLINE %s |
151 | 151 | // RETPOLINE: "-target-feature" "+retpoline-indirect-calls" "-target-feature" "+retpoline-indirect-branches" |
152 | 152 | // NO-RETPOLINE-NOT: retpoline |
153 | 153 |
|
154 | | -// RUN: %clang -target i386-linux-gnu -mretpoline -mretpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE-EXTERNAL-THUNK %s |
155 | | -// RUN: %clang -target i386-linux-gnu -mretpoline -mno-retpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=NO-RETPOLINE-EXTERNAL-THUNK %s |
| 154 | +// RUN: %clang --target=i386-linux-gnu -mretpoline -mretpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE-EXTERNAL-THUNK %s |
| 155 | +// RUN: %clang --target=i386-linux-gnu -mretpoline -mno-retpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=NO-RETPOLINE-EXTERNAL-THUNK %s |
156 | 156 | // RETPOLINE-EXTERNAL-THUNK: "-target-feature" "+retpoline-external-thunk" |
157 | 157 | // NO-RETPOLINE-EXTERNAL-THUNK: "-target-feature" "-retpoline-external-thunk" |
158 | 158 |
|
159 | | -// RUN: %clang -target i386-linux-gnu -mspeculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=SLH %s |
160 | | -// RUN: %clang -target i386-linux-gnu -mretpoline -mspeculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE %s |
161 | | -// RUN: %clang -target i386-linux-gnu -mno-speculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=NO-SLH %s |
| 159 | +// RUN: %clang --target=i386-linux-gnu -mspeculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=SLH %s |
| 160 | +// RUN: %clang --target=i386-linux-gnu -mretpoline -mspeculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=RETPOLINE %s |
| 161 | +// RUN: %clang --target=i386-linux-gnu -mno-speculative-load-hardening %s -### 2>&1 | FileCheck -check-prefix=NO-SLH %s |
162 | 162 | // SLH-NOT: retpoline |
163 | 163 | // SLH: "-target-feature" "+retpoline-indirect-calls" |
164 | 164 | // SLH-NOT: retpoline |
165 | 165 | // SLH: "-mspeculative-load-hardening" |
166 | 166 | // NO-SLH-NOT: retpoline |
167 | 167 |
|
168 | | -// RUN: %clang -target i386-linux-gnu -mlvi-cfi %s -### 2>&1 | FileCheck -check-prefix=LVICFI %s |
169 | | -// RUN: %clang -target i386-linux-gnu -mno-lvi-cfi %s -### 2>&1 | FileCheck -check-prefix=NO-LVICFI %s |
| 168 | +// RUN: %clang --target=i386-linux-gnu -mlvi-cfi %s -### 2>&1 | FileCheck -check-prefix=LVICFI %s |
| 169 | +// RUN: %clang --target=i386-linux-gnu -mno-lvi-cfi %s -### 2>&1 | FileCheck -check-prefix=NO-LVICFI %s |
170 | 170 | // LVICFI: "-target-feature" "+lvi-cfi" |
171 | 171 | // NO-LVICFI-NOT: lvi-cfi |
172 | 172 |
|
|
177 | 177 | // RUN: not %clang --target=i386-linux-gnu -mlvi-cfi -mretpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=LVICFI-RETPOLINE-EXTERNAL-THUNK %s |
178 | 178 | // LVICFI-RETPOLINE-EXTERNAL-THUNK: error: invalid argument 'mretpoline-external-thunk' not allowed with 'mlvi-cfi' |
179 | 179 |
|
180 | | -// RUN: %clang -target i386-linux-gnu -mlvi-hardening %s -### 2>&1 | FileCheck -check-prefix=LVIHARDENING %s |
181 | | -// RUN: %clang -target i386-linux-gnu -mno-lvi-hardening %s -### 2>&1 | FileCheck -check-prefix=NO-LVIHARDENING %s |
| 180 | +// RUN: %clang --target=i386-linux-gnu -mlvi-hardening %s -### 2>&1 | FileCheck -check-prefix=LVIHARDENING %s |
| 181 | +// RUN: %clang --target=i386-linux-gnu -mno-lvi-hardening %s -### 2>&1 | FileCheck -check-prefix=NO-LVIHARDENING %s |
182 | 182 | // LVIHARDENING: "-target-feature" "+lvi-load-hardening" "-target-feature" "+lvi-cfi" |
183 | 183 | // NO-LVIHARDENING-NOT: "+lvi- |
184 | 184 |
|
|
189 | 189 | // RUN: not %clang --target=i386-linux-gnu -mlvi-hardening -mretpoline-external-thunk %s -### 2>&1 | FileCheck -check-prefix=LVIHARDENING-RETPOLINE-EXTERNAL-THUNK %s |
190 | 190 | // LVIHARDENING-RETPOLINE-EXTERNAL-THUNK: error: invalid argument 'mretpoline-external-thunk' not allowed with 'mlvi-hardening' |
191 | 191 |
|
192 | | -// RUN: %clang -target i386-linux-gnu -mseses %s -### 2>&1 | FileCheck -check-prefix=SESES %s |
193 | | -// RUN: %clang -target i386-linux-gnu -mno-seses %s -### 2>&1 | FileCheck -check-prefix=NO-SESES %s |
| 192 | +// RUN: %clang --target=i386-linux-gnu -mseses %s -### 2>&1 | FileCheck -check-prefix=SESES %s |
| 193 | +// RUN: %clang --target=i386-linux-gnu -mno-seses %s -### 2>&1 | FileCheck -check-prefix=NO-SESES %s |
194 | 194 | // SESES: "-target-feature" "+seses" |
195 | 195 | // SESES: "-target-feature" "+lvi-cfi" |
196 | 196 | // NO-SESES-NOT: seses |
197 | 197 | // NO-SESES-NOT: lvi-cfi |
198 | 198 |
|
199 | | -// RUN: %clang -target i386-linux-gnu -mseses -mno-lvi-cfi %s -### 2>&1 | FileCheck -check-prefix=SESES-NOLVICFI %s |
| 199 | +// RUN: %clang --target=i386-linux-gnu -mseses -mno-lvi-cfi %s -### 2>&1 | FileCheck -check-prefix=SESES-NOLVICFI %s |
200 | 200 | // SESES-NOLVICFI: "-target-feature" "+seses" |
201 | 201 | // SESES-NOLVICFI-NOT: lvi-cfi |
202 | 202 |
|
|
210 | 210 | // RUN: not %clang --target=i386-linux-gnu -mseses -mlvi-hardening %s -### 2>&1 | FileCheck -check-prefix=SESES-LVIHARDENING %s |
211 | 211 | // SESES-LVIHARDENING: error: invalid argument 'mlvi-hardening' not allowed with 'mseses' |
212 | 212 |
|
213 | | -// RUN: %clang -target i386-linux-gnu -mwaitpkg %s -### 2>&1 | FileCheck -check-prefix=WAITPKG %s |
214 | | -// RUN: %clang -target i386-linux-gnu -mno-waitpkg %s -### 2>&1 | FileCheck -check-prefix=NO-WAITPKG %s |
| 213 | +// RUN: %clang --target=i386-linux-gnu -mwaitpkg %s -### 2>&1 | FileCheck -check-prefix=WAITPKG %s |
| 214 | +// RUN: %clang --target=i386-linux-gnu -mno-waitpkg %s -### 2>&1 | FileCheck -check-prefix=NO-WAITPKG %s |
215 | 215 | // WAITPKG: "-target-feature" "+waitpkg" |
216 | 216 | // NO-WAITPKG: "-target-feature" "-waitpkg" |
217 | 217 |
|
|
265 | 265 | // TSXLDTRK: "-target-feature" "+tsxldtrk" |
266 | 266 | // NO-TSXLDTRK: "-target-feature" "-tsxldtrk" |
267 | 267 |
|
268 | | -// RUN: %clang -target i386-linux-gnu -mkl %s -### 2>&1 | FileCheck -check-prefix=KL %s |
269 | | -// RUN: %clang -target i386-linux-gnu -mno-kl %s -### 2>&1 | FileCheck -check-prefix=NO-KL %s |
| 268 | +// RUN: %clang --target=i386-linux-gnu -mkl %s -### 2>&1 | FileCheck -check-prefix=KL %s |
| 269 | +// RUN: %clang --target=i386-linux-gnu -mno-kl %s -### 2>&1 | FileCheck -check-prefix=NO-KL %s |
270 | 270 | // KL: "-target-feature" "+kl" |
271 | 271 | // NO-KL: "-target-feature" "-kl" |
272 | 272 |
|
273 | | -// RUN: %clang -target i386-linux-gnu -mwidekl %s -### 2>&1 | FileCheck -check-prefix=WIDE_KL %s |
274 | | -// RUN: %clang -target i386-linux-gnu -mno-widekl %s -### 2>&1 | FileCheck -check-prefix=NO-WIDE_KL %s |
| 273 | +// RUN: %clang --target=i386-linux-gnu -mwidekl %s -### 2>&1 | FileCheck -check-prefix=WIDE_KL %s |
| 274 | +// RUN: %clang --target=i386-linux-gnu -mno-widekl %s -### 2>&1 | FileCheck -check-prefix=NO-WIDE_KL %s |
275 | 275 | // WIDE_KL: "-target-feature" "+widekl" |
276 | 276 | // NO-WIDE_KL: "-target-feature" "-widekl" |
277 | 277 |
|
|
297 | 297 | // AMX-FP16: "-target-feature" "+amx-fp16" |
298 | 298 | // NO-AMX-FP16: "-target-feature" "-amx-fp16" |
299 | 299 |
|
300 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mamx-complex %s \ |
| 300 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mamx-complex %s \ |
301 | 301 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=AMX-COMPLEX %s |
302 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-amx-complex %s \ |
| 302 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-amx-complex %s \ |
303 | 303 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AMX-COMPLEX %s |
304 | 304 | // AMX-COMPLEX: "-target-feature" "+amx-complex" |
305 | 305 | // NO-AMX-COMPLEX: "-target-feature" "-amx-complex" |
306 | 306 |
|
307 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mamx-transpose %s \ |
| 307 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mamx-transpose %s \ |
308 | 308 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=AMX-TRANSPOSE %s |
309 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-amx-transpose %s \ |
| 309 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-amx-transpose %s \ |
310 | 310 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AMX-TRANSPOSE %s |
311 | 311 | // AMX-TRANSPOSE: "-target-feature" "+amx-transpose" |
312 | 312 | // NO-AMX-TRANSPOSE: "-target-feature" "-amx-transpose" |
313 | 313 |
|
314 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mamx-avx512 %s \ |
| 314 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mamx-avx512 %s \ |
315 | 315 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=AMX-AVX512 %s |
316 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-amx-avx512 %s \ |
| 316 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-amx-avx512 %s \ |
317 | 317 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AMX-AVX512 %s |
318 | 318 | // AMX-AVX512: "-target-feature" "+amx-avx512" |
319 | 319 | // NO-AMX-AVX512: "-target-feature" "-amx-avx512" |
320 | 320 |
|
321 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mamx-tf32 %s \ |
| 321 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mamx-tf32 %s \ |
322 | 322 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=AMX-TF32 %s |
323 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-amx-tf32 %s \ |
| 323 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-amx-tf32 %s \ |
324 | 324 | // RUN: -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AMX-TF32 %s |
325 | 325 | // AMX-TF32: "-target-feature" "+amx-tf32" |
326 | 326 | // NO-AMX-TF32: "-target-feature" "-amx-tf32" |
|
355 | 355 | // RAOINT: "-target-feature" "+raoint" |
356 | 356 | // NO-RAOINT: "-target-feature" "-raoint" |
357 | 357 |
|
358 | | -// RUN: %clang -target i386-linux-gnu -mavxifma %s -### -o %t.o 2>&1 | FileCheck -check-prefix=AVXIFMA %s |
359 | | -// RUN: %clang -target i386-linux-gnu -mno-avxifma %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AVXIFMA %s |
| 358 | +// RUN: %clang --target=i386-linux-gnu -mavxifma %s -### -o %t.o 2>&1 | FileCheck -check-prefix=AVXIFMA %s |
| 359 | +// RUN: %clang --target=i386-linux-gnu -mno-avxifma %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-AVXIFMA %s |
360 | 360 | // AVXIFMA: "-target-feature" "+avxifma" |
361 | 361 | // NO-AVXIFMA: "-target-feature" "-avxifma" |
362 | 362 |
|
|
471 | 471 | // RUN: touch %t.o |
472 | 472 | // RUN: %clang -fdriver-only -Werror --target=x86_64-pc-linux-gnu -mharden-sls=all %t.o -o /dev/null 2>&1 | count 0 |
473 | 473 |
|
474 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s |
475 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s |
476 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-apxf -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s |
477 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapxf -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s |
| 474 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s |
| 475 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s |
| 476 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-apxf -mapxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=APXF %s |
| 477 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapxf -mno-apxf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-APXF %s |
478 | 478 | // |
479 | 479 | // APXF: "-target-feature" "+egpr" "-target-feature" "+push2pop2" "-target-feature" "+ppx" "-target-feature" "+ndd" "-target-feature" "+ccmp" "-target-feature" "+nf" "-target-feature" "+cf" "-target-feature" "+zu" |
480 | 480 | // NO-APXF: "-target-feature" "-egpr" "-target-feature" "-push2pop2" "-target-feature" "-ppx" "-target-feature" "-ndd" "-target-feature" "-ccmp" "-target-feature" "-nf" "-target-feature" "-cf" "-target-feature" "-zu" |
481 | 481 |
|
482 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR %s |
483 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=push2pop2 %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PUSH2POP2 %s |
484 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=ppx %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PPX %s |
485 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NDD %s |
486 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=ccmp %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CCMP %s |
487 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=nf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NF %s |
488 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=cf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CF %s |
489 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=zu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ZU %s |
| 482 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR %s |
| 483 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=push2pop2 %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PUSH2POP2 %s |
| 484 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=ppx %s -### -o %t.o 2>&1 | FileCheck -check-prefix=PPX %s |
| 485 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NDD %s |
| 486 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=ccmp %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CCMP %s |
| 487 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=nf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NF %s |
| 488 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=cf %s -### -o %t.o 2>&1 | FileCheck -check-prefix=CF %s |
| 489 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=zu %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ZU %s |
490 | 490 | // EGPR: "-target-feature" "+egpr" |
491 | 491 | // PUSH2POP2: "-target-feature" "+push2pop2" |
492 | 492 | // PPX: "-target-feature" "+ppx" |
|
496 | 496 | // CF: "-target-feature" "+cf" |
497 | 497 | // ZU: "-target-feature" "+zu" |
498 | 498 |
|
499 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
500 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
501 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-apx-features=egpr -mno-apx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s |
502 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-apx-features=egpr -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
503 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mno-apx-features=egpr,ndd -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NO-NDD %s |
504 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr,ndd -mno-apx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NDD %s |
505 | | -// RUN: %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr -mno-apx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s |
| 499 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
| 500 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr -mapx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
| 501 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-apx-features=egpr -mno-apx-features=ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s |
| 502 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-apx-features=egpr -mapx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NDD %s |
| 503 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mno-apx-features=egpr,ndd -mapx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=EGPR-NO-NDD %s |
| 504 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr,ndd -mno-apx-features=egpr %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NDD %s |
| 505 | +// RUN: %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr -mno-apx-features=egpr,ndd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-EGPR-NO-NDD %s |
506 | 506 | // |
507 | 507 | // EGPR-NDD: "-target-feature" "+egpr" "-target-feature" "+ndd" |
508 | 508 | // EGPR-NO-NDD: "-target-feature" "-ndd" "-target-feature" "+egpr" |
509 | 509 | // NO-EGPR-NDD: "-target-feature" "+ndd" "-target-feature" "-egpr" |
510 | 510 | // NO-EGPR-NO-NDD: "-target-feature" "-egpr" "-target-feature" "-ndd" |
511 | 511 |
|
512 | | -// RUN: not %clang -target x86_64-unknown-linux-gnu -mapx-features=egpr,foo,bar %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ERROR %s |
| 512 | +// RUN: not %clang --target=x86_64-unknown-linux-gnu -mapx-features=egpr,foo,bar %s -### -o %t.o 2>&1 | FileCheck -check-prefix=ERROR %s |
513 | 513 | // |
514 | 514 | // ERROR: unsupported argument 'foo' to option '-mapx-features=' |
515 | 515 | // ERROR: unsupported argument 'bar' to option '-mapx-features=' |
0 commit comments