[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / register-list-dup.s
blob2e98fa0712c128ac52475e60c8502c25f44c678e
1 // RUN: not llvm-mc -triple=thumbv8.1m.main-none-eabi -show-encoding < %s 2>&1 | FileCheck -strict-whitespace %s
3 clrm {r0, r0}
4 // CHECK: warning: duplicated register (r0) in register list
5 // CHECK-NEXT: {{^clrm {r0, r0}}}
6 // CHECK-NEXT: {{^ \^}}
8 clrm {r0, r0, r1}
9 // CHECK: warning: duplicated register (r0) in register list
10 // CHECK-NEXT: {{^clrm {r0, r0, r1}}}
11 // CHECK-NEXT: {{^ \^}}
13 clrm {r0, r1, r0}
14 // CHECK: warning: duplicated register (r0) in register list
15 // CHECK-NEXT: {{^clrm {r0, r1, r0}}}
16 // CHECK-NEXT: {{^ \^}}
18 clrm {r0, r1, r1}
19 // CHECK: warning: duplicated register (r1) in register list
20 // CHECK-NEXT: {{^clrm {r0, r1, r1}}}
21 // CHECK-NEXT: {{^ \^}}
23 clrm {r1, r0, r1}
24 // CHECK: warning: duplicated register (r1) in register list
25 // CHECK-NEXT: {{^clrm {r1, r0, r1}}}
26 // CHECK-NEXT: {{^ \^}}
28 clrm {r1, r1, r0}
29 // CHECK: warning: duplicated register (r1) in register list
30 // CHECK-NEXT: {{^clrm {r1, r1, r0}}}
31 // CHECK-NEXT: {{^ \^}}
33 clrm {r0-r3, r0}
34 // CHECK: warning: duplicated register (r0) in register list
35 // CHECK-NEXT: {{^clrm {r0-r3, r0}}}
36 // CHECK-NEXT: {{^ \^}}
38 clrm {r2, r0-r3}
39 // CHECK: warning: duplicated register (r2) in register list
40 // CHECK-NEXT: {{^clrm {r2, r0-r3}}}
41 // CHECK-NEXT: {{^ \^}}
43 vscclrm {s0, s0, s1, vpr}
44 // CHECK: error: non-contiguous register range
45 // CHECK: {{^vscclrm {s0, s0, s1, vpr}}}
46 // CHECK: {{^ \^}}
48 vscclrm {s0-s3, vpr, s4}
49 // CHECK: error: register list not in ascending order
50 // CHECK-NEXT: {{^vscclrm {s0-s3, vpr, s4}}}
51 // CHECK-NEXT: {{^ \^}}
53 vscclrm {s0-s3, vpr, vpr}
54 // CHECK: warning: duplicated register (vpr) in register list
55 // CHECK-NEXT: {{^vscclrm {s0-s3, vpr, vpr}}}
56 // CHECK-NEXT: {{^ \^}}
58 vscclrm {q2, d4, vpr}
59 // CHECK: error: register list not in ascending order
60 // CHECK-NEXT: {{^vscclrm {q2, d4, vpr}}}
61 // CHECK-NEXT: {{^ \^}}
63 vscclrm {q2, d5, vpr}
64 // CHECK: error: non-contiguous register range
65 // CHECK-NEXT: {{^vscclrm {q2, d5, vpr}}}
66 // CHECK-NEXT: {{^ \^}}