|
340 | 340 | // RUN: %clang -target armv8a-linux-eabi -mcpu=cortex-a53+fp16 -### -c %s 2>&1 | FileCheck --check-prefix CHECK-CORTEX-A53-FP16 %s
|
341 | 341 | // RUN: %clang -target armv8a-linux-eabi -mcpu=cortex-a53+nofp16 -### -c %s 2>&1 | FileCheck --check-prefix CHECK-CORTEX-A53-NOFP16 %s
|
342 | 342 | // CHECK-CORTEX-A53-FP16: "-cc1" {{.*}}"-target-cpu" "cortex-a53" {{.*}}"-target-feature" "+fullfp16"
|
343 |
| -// CHECK-CORTEX-A53-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
344 |
| -// CHECK-CORTEX-A53-NOFP16: "-cc1" {{.*}}"-target-cpu" "cortex-a53" {{.*}}"-target-feature" "-fullfp16" "-target-feature" "-fp16fml" |
| 343 | +// CHECK-CORTEX-A53-FP16-NOT: "-target-feature" "+fp16fml" |
| 344 | +// CHECK-CORTEX-A53-NOFP16-NOT: "+fullfp16" |
| 345 | +// CHECK-CORTEX-A53-NOFP16-NOT: "+fp16fml" |
345 | 346 |
|
346 | 347 | // RUN: %clang -target armv8a-linux-eabi -march=armv8-a -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V8A-NOFP16FML %s
|
347 |
| -// CHECK-V8A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fp16fml" |
348 |
| -// CHECK-V8A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fullfp16" |
| 348 | +// CHECK-V8A-NOFP16FML-NOT: "-target-feature" "+fp16fml" |
| 349 | +// CHECK-V8A-NOFP16FML-NOT: "-target-feature" "+fullfp16" |
349 | 350 |
|
350 | 351 | // RUN: %clang -target armv8a-linux-eabi -march=armv8-a+fp16 -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V8A-FP16 %s
|
351 |
| -// CHECK-V8A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 352 | +// CHECK-V8A-FP16-NOT: "-target-feature" "+fp16fml" |
352 | 353 | // CHECK-V8A-FP16: "-target-feature" "+fullfp16"
|
353 |
| -// CHECK-V8A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 354 | +// CHECK-V8A-FP16-NOT: "-target-feature" "+fp16fml" |
354 | 355 | // CHECK-V8A-FP16-SAME: {{$}}
|
355 | 356 |
|
356 | 357 | // RUN: %clang -target armv8a-linux-eabi -march=armv8-a+fp16fml -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V8A-FP16FML %s
|
357 | 358 | // CHECK-V8A-FP16FML: "-target-feature" "+fp16fml" "-target-feature" "+fullfp16"
|
358 | 359 |
|
359 | 360 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.2-a -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V82A-NOFP16FML %s
|
360 |
| -// CHECK-V82A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fp16fml" |
361 |
| -// CHECK-V82A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fullfp16" |
| 361 | +// CHECK-V82A-NOFP16FML-NOT: "-target-feature" "+fp16fml" |
| 362 | +// CHECK-V82A-NOFP16FML-NOT: "-target-feature" "+fullfp16" |
362 | 363 |
|
363 | 364 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.2-a+fp16 -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V82A-FP16 %s
|
364 |
| -// CHECK-V82A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 365 | +// CHECK-V82A-FP16-NOT: "-target-feature" "+fp16fml" |
365 | 366 | // CHECK-V82A-FP16: "-target-feature" "+fullfp16"
|
366 |
| -// CHECK-V82A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 367 | +// CHECK-V82A-FP16-NOT: "-target-feature" "+fp16fml" |
367 | 368 | // CHECK-V82A-FP16-SAME: {{$}}
|
368 | 369 |
|
369 | 370 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.2-a+fp16fml -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V82A-FP16FML %s
|
|
382 | 383 | // CHECK-V82A-NOFP16-FP16FML: "-target-feature" "+fp16fml" "-target-feature" "+fullfp16"
|
383 | 384 |
|
384 | 385 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.3-a -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V83A-NOFP16FML %s
|
385 |
| -// CHECK-V83A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fp16fml" |
386 |
| -// CHECK-V83A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fullfp16" |
| 386 | +// CHECK-V83A-NOFP16FML-NOT: "-target-feature" "+fp16fml" |
| 387 | +// CHECK-V83A-NOFP16FML-NOT: "-target-feature" "+fullfp16" |
387 | 388 |
|
388 | 389 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.3-a+fp16 -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V83A-FP16 %s
|
389 |
| -// CHECK-V83A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 390 | +// CHECK-V83A-FP16-NOT: "-target-feature" "+fp16fml" |
390 | 391 | // CHECK-V83A-FP16: "-target-feature" "+fullfp16"
|
391 |
| -// CHECK-V83A-FP16-NOT: "-target-feature" "{{[+-]}}fp16fml" |
| 392 | +// CHECK-V83A-FP16-NOT: "-target-feature" "+fp16fml" |
392 | 393 | // CHECK-V83A-FP16-SAME: {{$}}
|
393 | 394 |
|
394 | 395 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.3-a+fp16fml -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V83A-FP16FML %s
|
|
407 | 408 | // CHECK-V83A-NOFP16-FP16FML: "-target-feature" "+fp16fml" "-target-feature" "+fullfp16"
|
408 | 409 |
|
409 | 410 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.4-a -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V84A-NOFP16FML %s
|
410 |
| -// CHECK-V84A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fp16fml" |
411 |
| -// CHECK-V84A-NOFP16FML-NOT: "-target-feature" "{{[+-]}}fullfp16" |
| 411 | +// CHECK-V84A-NOFP16FML-NOT: "-target-feature" "+fp16fml" |
| 412 | +// CHECK-V84A-NOFP16FML-NOT: "-target-feature" "+fullfp16" |
412 | 413 |
|
413 | 414 | // RUN: %clang -target armv8a-linux-eabi -march=armv8.4-a+fp16 -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V84A-FP16 %s
|
414 | 415 | // CHECK-V84A-FP16: "-target-feature" "+fullfp16" "-target-feature" "+fp16fml"
|
|
853 | 854 | // RUN: %clang -target arm -march=Armv6t2 -mthumb -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-CASE-INSENSITIVE-V6T2-THUMB %s
|
854 | 855 | // RUN: %clang -target arm -march=ARMV6T2 -mthumb -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-CASE-INSENSITIVE-V6T2-THUMB %s
|
855 | 856 | // CHECK-CASE-INSENSITIVE-V6T2-THUMB: "-cc1"{{.*}} "-triple" "thumbv6t2-{{.*}} "-target-cpu" "arm1156t2-s"
|
| 857 | + |
| 858 | +// ================== Check that the correct PROCESSOR features are added when used -mcpu=PROCESSOR+FEATURESLIST |
| 859 | +// RUN: %clang -### --target=arm-arm-none-eabi -march=armv7-a -mcpu=cortex-a8+nocrc -x c -S -o - - <<< "" 2>&1 | FileCheck -check-prefix=A8FEATURES %s |
| 860 | +// A8FEATURES: "-target-feature" "+dsp" |
0 commit comments