| 1 |
# REQUIRES: arm-registered-target |
| 2 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8-m.main -o /dev/null %s 2>%t |
| 3 |
# RUN: FileCheck --check-prefix=ERROR-V8M < %t %s |
| 4 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main -o /dev/null %s 2>%t |
| 5 |
# RUN: FileCheck --check-prefix=ERROR-V81M < %t %s |
| 6 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+dsp -o /dev/null %s 2>%t |
| 7 |
# RUN: FileCheck --check-prefix=ERROR-V81M_DSP < %t %s |
| 8 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+fp -o /dev/null %s 2>%t |
| 9 |
# RUN: FileCheck --check-prefix=ERROR-V81M_FP < %t %s |
| 10 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+nofp -o /dev/null %s 2>%t |
| 11 |
# RUN: FileCheck --check-prefix=ERROR-V81M_NOFP < %t %s |
| 12 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+fp.dp -o /dev/null %s 2>%t |
| 13 |
# RUN: FileCheck --check-prefix=ERROR-V81M_FPDP < %t %s |
| 14 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+nofp.dp -o /dev/null %s 2>%t |
| 15 |
# RUN: FileCheck --check-prefix=ERROR-V81M_NOFPDP < %t %s |
| 16 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+mve -o /dev/null %s 2>%t |
| 17 |
# RUN: FileCheck --check-prefix=ERROR-V81M_MVE < %t %s |
| 18 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+nomve -o /dev/null %s 2>%t |
| 19 |
# RUN: FileCheck --check-prefix=ERROR-V81M_NOMVE < %t %s |
| 20 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+mve+fp -o /dev/null %s 2>%t |
| 21 |
# RUN: FileCheck --check-prefix=ERROR-V81M_MVE_FP < %t %s |
| 22 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+mve.fp -o /dev/null %s 2>%t |
| 23 |
# RUN: FileCheck --check-prefix=ERROR-V81M_MVEFP < %t %s |
| 24 |
# RUN: not %clang -c -target arm-none-none-eabi -march=armv8.1-m.main+nomve.fp -o /dev/null %s 2>%t |
| 25 |
# RUN: FileCheck --check-prefix=ERROR-V81M_NOMVEFP < %t %s |
| 26 |
|
| 27 |
.syntax unified |
| 28 |
.thumb |
| 29 |
.text |
| 30 |
|
| 31 |
csinc r0, r1, r2, eq |
| 32 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 33 |
|
| 34 |
qadd r0, r1, r2 |
| 35 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 36 |
# ERROR-V81M: :[[@LINE-2]]:1: error |
| 37 |
# ERROR-V81M_FP: :[[@LINE-3]]:1: error |
| 38 |
# ERROR-V81M_NOFP: :[[@LINE-4]]:1: error |
| 39 |
# ERROR-V81M_FPDP: :[[@LINE-5]]:1: error |
| 40 |
# ERROR-V81M_NOFPDP: :[[@LINE-6]]:1: error |
| 41 |
# ERROR-V81M_NOMVE: :[[@LINE-7]]:1: error |
| 42 |
# ERROR-V81M_NOMVEFP: :[[@LINE-8]]:1: error |
| 43 |
|
| 44 |
vadd.f16 s0, s1, s2 |
| 45 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 46 |
# ERROR-V81M_NOFP: :[[@LINE-2]]:1: error |
| 47 |
|
| 48 |
vabs.f32 s0, s1 |
| 49 |
# ERROR-V81M_NOFP: :[[@LINE-1]]:1: error |
| 50 |
|
| 51 |
vabs.s32 q0, q1 |
| 52 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 53 |
# ERROR-V81M: :[[@LINE-2]]:1: error |
| 54 |
# ERROR-V81M_DSP: :[[@LINE-3]]:1: error |
| 55 |
# ERROR-V81M_FP: :[[@LINE-4]]:1: error |
| 56 |
# ERROR-V81M_NOFP: :[[@LINE-5]]:1: error |
| 57 |
# ERROR-V81M_FPDP: :[[@LINE-6]]:1: error |
| 58 |
# ERROR-V81M_NOFPDP: :[[@LINE-7]]:1: error |
| 59 |
# ERROR-V81M_NOMVE: :[[@LINE-8]]:1: error |
| 60 |
# ERROR-V81M_NOMVEFP: :[[@LINE-9]]:1: error |
| 61 |
|
| 62 |
vcmp.f64 d0,d1 |
| 63 |
# ERROR-V81M: :[[@LINE-1]]:1: error |
| 64 |
# ERROR-V81M_DSP: :[[@LINE-2]]:1: error |
| 65 |
# ERROR-V81M_FP: :[[@LINE-3]]:1: error |
| 66 |
# ERROR-V81M_NOFP: :[[@LINE-4]]:1: error |
| 67 |
# ERROR-V81M_NOFPDP: :[[@LINE-5]]:1: error |
| 68 |
# ERROR-V81M_MVE: :[[@LINE-6]]:1: error |
| 69 |
# ERROR-V81M_NOMVE: :[[@LINE-7]]:1: error |
| 70 |
# ERROR-V81M_MVE_FP: :[[@LINE-8]]:1: error |
| 71 |
# ERROR-V81M_MVEFP: :[[@LINE-9]]:1: error |
| 72 |
# ERROR-V81M_NOMVEFP: :[[@LINE-10]]:1: error |
| 73 |
|
| 74 |
asrl r0, r1, r2 |
| 75 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 76 |
# ERROR-V81M: :[[@LINE-2]]:1: error |
| 77 |
# ERROR-V81M_DSP: :[[@LINE-3]]:1: error |
| 78 |
# ERROR-V81M_FP: :[[@LINE-4]]:1: error |
| 79 |
# ERROR-V81M_FPDP: :[[@LINE-5]]:1: error |
| 80 |
# ERROR-V81M_NOFPDP: :[[@LINE-6]]:1: error |
| 81 |
# ERROR-V81M_NOMVE: :[[@LINE-7]]:1: error |
| 82 |
# ERROR-V81M_NOMVEFP: :[[@LINE-8]]:1: error |
| 83 |
|
| 84 |
vcadd.i8 q0, q1, q2, #90 |
| 85 |
# ERROR-V8M: :[[@LINE-1]]:1: error |
| 86 |
# ERROR-V81M: :[[@LINE-2]]:1: error |
| 87 |
# ERROR-V81M_DSP: :[[@LINE-3]]:1: error |
| 88 |
# ERROR-V81M_FP: :[[@LINE-4]]:1: error |
| 89 |
# ERROR-V81M_FPDP: :[[@LINE-5]]:1: error |
| 90 |
# ERROR-V81M_NOFPDP: :[[@LINE-6]]:1: error |
| 91 |
# ERROR-V81M_NOMVE: :[[@LINE-7]]:1: error |
| 92 |
# ERROR-V81M_NOMVEFP: :[[@LINE-8]]:1: error |