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