1 # RUN: llvm-mc -triple riscv32 < %s -riscv-arch-reg-names \
2 # RUN: | FileCheck -check-prefix=CHECK-NUMERIC %s
3 # RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
4 # RUN: | llvm-objdump -d -M numeric - \
5 # RUN: | FileCheck -check-prefix=CHECK-NUMERIC %s
7 # CHECK-NUMERIC: addi x10, x0, 1
8 # CHECK-NUMERIC-NEXT: addi x10, x0, 1
12 # CHECK-NUMERIC: addi x10, x1, 1
13 # CHECK-NUMERIC-NEXT: addi x10, x1, 1
17 # CHECK-NUMERIC: addi x10, x2, 1
18 # CHECK-NUMERIC-NEXT: addi x10, x2, 1
22 # CHECK-NUMERIC: addi x10, x3, 1
23 # CHECK-NUMERIC-NEXT: addi x10, x3, 1
27 # CHECK-NUMERIC: addi x10, x4, 1
28 # CHECK-NUMERIC-NEXT: addi x10, x4, 1
32 # CHECK-NUMERIC: addi x10, x5, 1
33 # CHECK-NUMERIC-NEXT: addi x10, x5, 1
37 # CHECK-NUMERIC: addi x10, x6, 1
38 # CHECK-NUMERIC-NEXT: addi x10, x6, 1
42 # CHECK-NUMERIC: addi x10, x7, 1
43 # CHECK-NUMERIC-NEXT: addi x10, x7, 1
47 # CHECK-NUMERIC: addi x10, x8, 1
48 # CHECK-NUMERIC-NEXT: addi x10, x8, 1
49 # CHECK-NUMERIC-NEXT: addi x10, x8, 1
54 # CHECK-NUMERIC: addi x10, x9, 1
55 # CHECK-NUMERIC-NEXT: addi x10, x9, 1
59 # CHECK-NUMERIC: addi x10, x10, 1
60 # CHECK-NUMERIC-NEXT: addi x10, x10, 1
64 # CHECK-NUMERIC: addi x10, x11, 1
65 # CHECK-NUMERIC-NEXT: addi x10, x11, 1
69 # CHECK-NUMERIC: addi x10, x12, 1
70 # CHECK-NUMERIC-NEXT: addi x10, x12, 1
74 # CHECK-NUMERIC: addi x10, x13, 1
75 # CHECK-NUMERIC-NEXT: addi x10, x13, 1
79 # CHECK-NUMERIC: addi x10, x14, 1
80 # CHECK-NUMERIC-NEXT: addi x10, x14, 1
84 # CHECK-NUMERIC: addi x10, x15, 1
85 # CHECK-NUMERIC-NEXT: addi x10, x15, 1
89 # CHECK-NUMERIC: addi x10, x16, 1
90 # CHECK-NUMERIC-NEXT: addi x10, x16, 1
94 # CHECK-NUMERIC: addi x10, x17, 1
95 # CHECK-NUMERIC-NEXT: addi x10, x17, 1
99 # CHECK-NUMERIC: addi x10, x18, 1
100 # CHECK-NUMERIC-NEXT: addi x10, x18, 1
104 # CHECK-NUMERIC: addi x10, x19, 1
105 # CHECK-NUMERIC-NEXT: addi x10, x19, 1
109 # CHECK-NUMERIC: addi x10, x20, 1
110 # CHECK-NUMERIC-NEXT: addi x10, x20, 1
114 # CHECK-NUMERIC: addi x10, x21, 1
115 # CHECK-NUMERIC-NEXT: addi x10, x21, 1
119 # CHECK-NUMERIC: addi x10, x22, 1
120 # CHECK-NUMERIC-NEXT: addi x10, x22, 1
124 # CHECK-NUMERIC: addi x10, x23, 1
125 # CHECK-NUMERIC-NEXT: addi x10, x23, 1
129 # CHECK-NUMERIC: addi x10, x24, 1
130 # CHECK-NUMERIC-NEXT: addi x10, x24, 1
134 # CHECK-NUMERIC: addi x10, x25, 1
135 # CHECK-NUMERIC-NEXT: addi x10, x25, 1
139 # CHECK-NUMERIC: addi x10, x26, 1
140 # CHECK-NUMERIC-NEXT: addi x10, x26, 1
144 # CHECK-NUMERIC: addi x10, x27, 1
145 # CHECK-NUMERIC-NEXT: addi x10, x27, 1
149 # CHECK-NUMERIC: addi x10, x28, 1
150 # CHECK-NUMERIC-NEXT: addi x10, x28, 1
154 # CHECK-NUMERIC: addi x10, x29, 1
155 # CHECK-NUMERIC-NEXT: addi x10, x29, 1
159 # CHECK-NUMERIC: addi x10, x30, 1
160 # CHECK-NUMERIC-NEXT: addi x10, x30, 1
164 # CHECK-NUMERIC: addi x10, x31, 1
165 # CHECK-NUMERIC-NEXT: addi x10, x31, 1