[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / RISCV / numeric-reg-names.s
blobe7a2d889d31b80ffb5ca317f2cc62513b3658044
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
9 addi a0, x0, 1
10 addi a0, zero, 1
12 # CHECK-NUMERIC: addi x10, x1, 1
13 # CHECK-NUMERIC-NEXT: addi x10, x1, 1
14 addi a0, x1, 1
15 addi a0, ra, 1
17 # CHECK-NUMERIC: addi x10, x2, 1
18 # CHECK-NUMERIC-NEXT: addi x10, x2, 1
19 addi a0, x2, 1
20 addi a0, sp, 1
22 # CHECK-NUMERIC: addi x10, x3, 1
23 # CHECK-NUMERIC-NEXT: addi x10, x3, 1
24 addi a0, x3, 1
25 addi a0, gp, 1
27 # CHECK-NUMERIC: addi x10, x4, 1
28 # CHECK-NUMERIC-NEXT: addi x10, x4, 1
29 addi a0, x4, 1
30 addi a0, tp, 1
32 # CHECK-NUMERIC: addi x10, x5, 1
33 # CHECK-NUMERIC-NEXT: addi x10, x5, 1
34 addi a0, x5, 1
35 addi a0, t0, 1
37 # CHECK-NUMERIC: addi x10, x6, 1
38 # CHECK-NUMERIC-NEXT: addi x10, x6, 1
39 addi a0, x6, 1
40 addi a0, t1, 1
42 # CHECK-NUMERIC: addi x10, x7, 1
43 # CHECK-NUMERIC-NEXT: addi x10, x7, 1
44 addi a0, x7, 1
45 addi a0, t2, 1
47 # CHECK-NUMERIC: addi x10, x8, 1
48 # CHECK-NUMERIC-NEXT: addi x10, x8, 1
49 # CHECK-NUMERIC-NEXT: addi x10, x8, 1
50 addi a0, x8, 1
51 addi a0, s0, 1
52 addi a0, fp, 1
54 # CHECK-NUMERIC: addi x10, x9, 1
55 # CHECK-NUMERIC-NEXT: addi x10, x9, 1
56 addi a0, x9, 1
57 addi a0, s1, 1
59 # CHECK-NUMERIC: addi x10, x10, 1
60 # CHECK-NUMERIC-NEXT: addi x10, x10, 1
61 addi a0, x10, 1
62 addi a0, a0, 1
64 # CHECK-NUMERIC: addi x10, x11, 1
65 # CHECK-NUMERIC-NEXT: addi x10, x11, 1
66 addi a0, x11, 1
67 addi a0, a1, 1
69 # CHECK-NUMERIC: addi x10, x12, 1
70 # CHECK-NUMERIC-NEXT: addi x10, x12, 1
71 addi a0, x12, 1
72 addi a0, a2, 1
74 # CHECK-NUMERIC: addi x10, x13, 1
75 # CHECK-NUMERIC-NEXT: addi x10, x13, 1
76 addi a0, x13, 1
77 addi a0, a3, 1
79 # CHECK-NUMERIC: addi x10, x14, 1
80 # CHECK-NUMERIC-NEXT: addi x10, x14, 1
81 addi a0, x14, 1
82 addi a0, a4, 1
84 # CHECK-NUMERIC: addi x10, x15, 1
85 # CHECK-NUMERIC-NEXT: addi x10, x15, 1
86 addi a0, x15, 1
87 addi a0, a5, 1
89 # CHECK-NUMERIC: addi x10, x16, 1
90 # CHECK-NUMERIC-NEXT: addi x10, x16, 1
91 addi a0, x16, 1
92 addi a0, a6, 1
94 # CHECK-NUMERIC: addi x10, x17, 1
95 # CHECK-NUMERIC-NEXT: addi x10, x17, 1
96 addi a0, x17, 1
97 addi a0, a7, 1
99 # CHECK-NUMERIC: addi x10, x18, 1
100 # CHECK-NUMERIC-NEXT: addi x10, x18, 1
101 addi a0, x18, 1
102 addi a0, s2, 1
104 # CHECK-NUMERIC: addi x10, x19, 1
105 # CHECK-NUMERIC-NEXT: addi x10, x19, 1
106 addi a0, x19, 1
107 addi a0, s3, 1
109 # CHECK-NUMERIC: addi x10, x20, 1
110 # CHECK-NUMERIC-NEXT: addi x10, x20, 1
111 addi a0, x20, 1
112 addi a0, s4, 1
114 # CHECK-NUMERIC: addi x10, x21, 1
115 # CHECK-NUMERIC-NEXT: addi x10, x21, 1
116 addi a0, x21, 1
117 addi a0, s5, 1
119 # CHECK-NUMERIC: addi x10, x22, 1
120 # CHECK-NUMERIC-NEXT: addi x10, x22, 1
121 addi a0, x22, 1
122 addi a0, s6, 1
124 # CHECK-NUMERIC: addi x10, x23, 1
125 # CHECK-NUMERIC-NEXT: addi x10, x23, 1
126 addi a0, x23, 1
127 addi a0, s7, 1
129 # CHECK-NUMERIC: addi x10, x24, 1
130 # CHECK-NUMERIC-NEXT: addi x10, x24, 1
131 addi a0, x24, 1
132 addi a0, s8, 1
134 # CHECK-NUMERIC: addi x10, x25, 1
135 # CHECK-NUMERIC-NEXT: addi x10, x25, 1
136 addi a0, x25, 1
137 addi a0, s9, 1
139 # CHECK-NUMERIC: addi x10, x26, 1
140 # CHECK-NUMERIC-NEXT: addi x10, x26, 1
141 addi a0, x26, 1
142 addi a0, s10, 1
144 # CHECK-NUMERIC: addi x10, x27, 1
145 # CHECK-NUMERIC-NEXT: addi x10, x27, 1
146 addi a0, x27, 1
147 addi a0, s11, 1
149 # CHECK-NUMERIC: addi x10, x28, 1
150 # CHECK-NUMERIC-NEXT: addi x10, x28, 1
151 addi a0, x28, 1
152 addi a0, t3, 1
154 # CHECK-NUMERIC: addi x10, x29, 1
155 # CHECK-NUMERIC-NEXT: addi x10, x29, 1
156 addi a0, x29, 1
157 addi a0, t4, 1
159 # CHECK-NUMERIC: addi x10, x30, 1
160 # CHECK-NUMERIC-NEXT: addi x10, x30, 1
161 addi a0, x30, 1
162 addi a0, t5, 1
164 # CHECK-NUMERIC: addi x10, x31, 1
165 # CHECK-NUMERIC-NEXT: addi x10, x31, 1
166 addi a0, x31, 1
167 addi a0, t6, 1