[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / MC / SystemZ / regs-good.s
blobb4c1edd1b591e7157a9b17dbcc79c1c9ff933b19
1 # RUN: llvm-mc -triple s390x-linux-gnu -show-encoding %s | FileCheck %s
3 #CHECK: lr %r0, %r1 # encoding: [0x18,0x01]
4 #CHECK: lr %r2, %r3 # encoding: [0x18,0x23]
5 #CHECK: lr %r4, %r5 # encoding: [0x18,0x45]
6 #CHECK: lr %r6, %r7 # encoding: [0x18,0x67]
7 #CHECK: lr %r8, %r9 # encoding: [0x18,0x89]
8 #CHECK: lr %r10, %r11 # encoding: [0x18,0xab]
9 #CHECK: lr %r12, %r13 # encoding: [0x18,0xcd]
10 #CHECK: lr %r14, %r15 # encoding: [0x18,0xef]
11 #CHECK: lr %r0, %r15 # encoding: [0x18,0x0f]
13 lr %r0,%r1
14 lr %r2,%r3
15 lr %r4,%r5
16 lr %r6,%r7
17 lr %r8,%r9
18 lr %r10,%r11
19 lr %r12,%r13
20 lr %r14,%r15
21 lr 0,15
23 #CHECK: lgr %r0, %r1 # encoding: [0xb9,0x04,0x00,0x01]
24 #CHECK: lgr %r2, %r3 # encoding: [0xb9,0x04,0x00,0x23]
25 #CHECK: lgr %r4, %r5 # encoding: [0xb9,0x04,0x00,0x45]
26 #CHECK: lgr %r6, %r7 # encoding: [0xb9,0x04,0x00,0x67]
27 #CHECK: lgr %r8, %r9 # encoding: [0xb9,0x04,0x00,0x89]
28 #CHECK: lgr %r10, %r11 # encoding: [0xb9,0x04,0x00,0xab]
29 #CHECK: lgr %r12, %r13 # encoding: [0xb9,0x04,0x00,0xcd]
30 #CHECK: lgr %r14, %r15 # encoding: [0xb9,0x04,0x00,0xef]
31 #CHECK: lgr %r0, %r15 # encoding: [0xb9,0x04,0x00,0x0f]
33 lgr %r0,%r1
34 lgr %r2,%r3
35 lgr %r4,%r5
36 lgr %r6,%r7
37 lgr %r8,%r9
38 lgr %r10,%r11
39 lgr %r12,%r13
40 lgr %r14,%r15
41 lgr 0,15
43 #CHECK: dlr %r0, %r0 # encoding: [0xb9,0x97,0x00,0x00]
44 #CHECK: dlr %r2, %r0 # encoding: [0xb9,0x97,0x00,0x20]
45 #CHECK: dlr %r4, %r0 # encoding: [0xb9,0x97,0x00,0x40]
46 #CHECK: dlr %r6, %r0 # encoding: [0xb9,0x97,0x00,0x60]
47 #CHECK: dlr %r8, %r0 # encoding: [0xb9,0x97,0x00,0x80]
48 #CHECK: dlr %r10, %r0 # encoding: [0xb9,0x97,0x00,0xa0]
49 #CHECK: dlr %r12, %r0 # encoding: [0xb9,0x97,0x00,0xc0]
50 #CHECK: dlr %r14, %r0 # encoding: [0xb9,0x97,0x00,0xe0]
51 #CHECK: dlr %r14, %r0 # encoding: [0xb9,0x97,0x00,0xe0]
53 dlr %r0,%r0
54 dlr %r2,%r0
55 dlr %r4,%r0
56 dlr %r6,%r0
57 dlr %r8,%r0
58 dlr %r10,%r0
59 dlr %r12,%r0
60 dlr %r14,%r0
61 dlr 14,0
63 #CHECK: ler %f0, %f1 # encoding: [0x38,0x01]
64 #CHECK: ler %f2, %f3 # encoding: [0x38,0x23]
65 #CHECK: ler %f4, %f5 # encoding: [0x38,0x45]
66 #CHECK: ler %f6, %f7 # encoding: [0x38,0x67]
67 #CHECK: ler %f8, %f9 # encoding: [0x38,0x89]
68 #CHECK: ler %f10, %f11 # encoding: [0x38,0xab]
69 #CHECK: ler %f12, %f13 # encoding: [0x38,0xcd]
70 #CHECK: ler %f14, %f15 # encoding: [0x38,0xef]
71 #CHECK: ler %f0, %f15 # encoding: [0x38,0x0f]
73 ler %f0,%f1
74 ler %f2,%f3
75 ler %f4,%f5
76 ler %f6,%f7
77 ler %f8,%f9
78 ler %f10,%f11
79 ler %f12,%f13
80 ler %f14,%f15
81 ler 0,15
83 #CHECK: ldr %f0, %f1 # encoding: [0x28,0x01]
84 #CHECK: ldr %f2, %f3 # encoding: [0x28,0x23]
85 #CHECK: ldr %f4, %f5 # encoding: [0x28,0x45]
86 #CHECK: ldr %f6, %f7 # encoding: [0x28,0x67]
87 #CHECK: ldr %f8, %f9 # encoding: [0x28,0x89]
88 #CHECK: ldr %f10, %f11 # encoding: [0x28,0xab]
89 #CHECK: ldr %f12, %f13 # encoding: [0x28,0xcd]
90 #CHECK: ldr %f14, %f15 # encoding: [0x28,0xef]
91 #CHECK: ldr %f0, %f15 # encoding: [0x28,0x0f]
93 ldr %f0,%f1
94 ldr %f2,%f3
95 ldr %f4,%f5
96 ldr %f6,%f7
97 ldr %f8,%f9
98 ldr %f10,%f11
99 ldr %f12,%f13
100 ldr %f14,%f15
101 ldr 0,15
103 #CHECK: lxr %f0, %f1 # encoding: [0xb3,0x65,0x00,0x01]
104 #CHECK: lxr %f4, %f5 # encoding: [0xb3,0x65,0x00,0x45]
105 #CHECK: lxr %f8, %f9 # encoding: [0xb3,0x65,0x00,0x89]
106 #CHECK: lxr %f12, %f13 # encoding: [0xb3,0x65,0x00,0xcd]
107 #CHECK: lxr %f0, %f13 # encoding: [0xb3,0x65,0x00,0x0d]
109 lxr %f0,%f1
110 lxr %f4,%f5
111 lxr %f8,%f9
112 lxr %f12,%f13
113 lxr 0,13
115 #CHECK: cpya %a0, %a1 # encoding: [0xb2,0x4d,0x00,0x01]
116 #CHECK: cpya %a2, %a3 # encoding: [0xb2,0x4d,0x00,0x23]
117 #CHECK: cpya %a4, %a5 # encoding: [0xb2,0x4d,0x00,0x45]
118 #CHECK: cpya %a6, %a7 # encoding: [0xb2,0x4d,0x00,0x67]
119 #CHECK: cpya %a8, %a9 # encoding: [0xb2,0x4d,0x00,0x89]
120 #CHECK: cpya %a10, %a11 # encoding: [0xb2,0x4d,0x00,0xab]
121 #CHECK: cpya %a12, %a13 # encoding: [0xb2,0x4d,0x00,0xcd]
122 #CHECK: cpya %a14, %a15 # encoding: [0xb2,0x4d,0x00,0xef]
123 #CHECK: cpya %a0, %a15 # encoding: [0xb2,0x4d,0x00,0x0f]
125 cpya %a0,%a1
126 cpya %a2,%a3
127 cpya %a4,%a5
128 cpya %a6,%a7
129 cpya %a8,%a9
130 cpya %a10,%a11
131 cpya %a12,%a13
132 cpya %a14,%a15
133 cpya 0,15
135 #CHECK: lctl %c0, %c1, 0 # encoding: [0xb7,0x01,0x00,0x00]
136 #CHECK: lctl %c2, %c3, 0 # encoding: [0xb7,0x23,0x00,0x00]
137 #CHECK: lctl %c4, %c5, 0 # encoding: [0xb7,0x45,0x00,0x00]
138 #CHECK: lctl %c6, %c7, 0 # encoding: [0xb7,0x67,0x00,0x00]
139 #CHECK: lctl %c8, %c9, 0 # encoding: [0xb7,0x89,0x00,0x00]
140 #CHECK: lctl %c10, %c11, 0 # encoding: [0xb7,0xab,0x00,0x00]
141 #CHECK: lctl %c12, %c13, 0 # encoding: [0xb7,0xcd,0x00,0x00]
142 #CHECK: lctl %c14, %c15, 0 # encoding: [0xb7,0xef,0x00,0x00]
143 #CHECK: lctl %c0, %c15, 0 # encoding: [0xb7,0x0f,0x00,0x00]
145 lctl %c0,%c1,0
146 lctl %c2,%c3,0
147 lctl %c4,%c5,0
148 lctl %c6,%c7,0
149 lctl %c8,%c9,0
150 lctl %c10,%c11,0
151 lctl %c12,%c13,0
152 lctl %c14,%c15,0
153 lctl 0,15,0
155 #CHECK: st %r0, 0 # encoding: [0x50,0x00,0x00,0x00]
156 #CHECK: st %r0, 4095 # encoding: [0x50,0x00,0x0f,0xff]
157 #CHECK: st %r0, 0(%r1) # encoding: [0x50,0x00,0x10,0x00]
158 #CHECK: st %r0, 0(%r15) # encoding: [0x50,0x00,0xf0,0x00]
159 #CHECK: st %r0, 4095(%r1,%r15) # encoding: [0x50,0x01,0xff,0xff]
160 #CHECK: st %r0, 4095(%r15,%r1) # encoding: [0x50,0x0f,0x1f,0xff]
161 #CHECK: st %r15, 0 # encoding: [0x50,0xf0,0x00,0x00]
162 #CHECK: st %r0, 0(%r1) # encoding: [0x50,0x00,0x10,0x00]
163 #CHECK: st %r0, 0(%r15) # encoding: [0x50,0x00,0xf0,0x00]
164 #CHECK: st %r0, 4095(%r1,%r15) # encoding: [0x50,0x01,0xff,0xff]
165 #CHECK: st %r0, 4095(%r15,%r1) # encoding: [0x50,0x0f,0x1f,0xff]
167 st %r0, 0
168 st %r0, 4095
169 st %r0, 0(%r1)
170 st %r0, 0(%r15)
171 st %r0, 4095(%r1,%r15)
172 st %r0, 4095(%r15,%r1)
173 st %r15, 0
174 st 0, 0(1)
175 st 0, 0(15)
176 st 0, 4095(1,15)
177 st 0, 4095(15,1)
179 #CHECK: .cfi_offset %r0, 0
180 #CHECK: .cfi_offset %r1, 8
181 #CHECK: .cfi_offset %r2, 16
182 #CHECK: .cfi_offset %r3, 24
183 #CHECK: .cfi_offset %r4, 32
184 #CHECK: .cfi_offset %r5, 40
185 #CHECK: .cfi_offset %r6, 48
186 #CHECK: .cfi_offset %r7, 56
187 #CHECK: .cfi_offset %r8, 64
188 #CHECK: .cfi_offset %r9, 72
189 #CHECK: .cfi_offset %r10, 80
190 #CHECK: .cfi_offset %r11, 88
191 #CHECK: .cfi_offset %r12, 96
192 #CHECK: .cfi_offset %r13, 104
193 #CHECK: .cfi_offset %r14, 112
194 #CHECK: .cfi_offset %r15, 120
195 #CHECK: .cfi_offset %f0, 128
196 #CHECK: .cfi_offset %f1, 136
197 #CHECK: .cfi_offset %f2, 144
198 #CHECK: .cfi_offset %f3, 152
199 #CHECK: .cfi_offset %f4, 160
200 #CHECK: .cfi_offset %f5, 168
201 #CHECK: .cfi_offset %f6, 176
202 #CHECK: .cfi_offset %f7, 184
203 #CHECK: .cfi_offset %f8, 192
204 #CHECK: .cfi_offset %f9, 200
205 #CHECK: .cfi_offset %f10, 208
206 #CHECK: .cfi_offset %f11, 216
207 #CHECK: .cfi_offset %f12, 224
208 #CHECK: .cfi_offset %f13, 232
209 #CHECK: .cfi_offset %f14, 240
210 #CHECK: .cfi_offset %f15, 248
211 #CHECK: .cfi_offset %a0, 256
212 #CHECK: .cfi_offset %a1, 260
213 #CHECK: .cfi_offset %a2, 264
214 #CHECK: .cfi_offset %a3, 268
215 #CHECK: .cfi_offset %a4, 272
216 #CHECK: .cfi_offset %a5, 276
217 #CHECK: .cfi_offset %a6, 280
218 #CHECK: .cfi_offset %a7, 284
219 #CHECK: .cfi_offset %a8, 288
220 #CHECK: .cfi_offset %r9, 292
221 #CHECK: .cfi_offset %a10, 296
222 #CHECK: .cfi_offset %a11, 300
223 #CHECK: .cfi_offset %a12, 304
224 #CHECK: .cfi_offset %a13, 308
225 #CHECK: .cfi_offset %a14, 312
226 #CHECK: .cfi_offset %a15, 316
227 #CHECK: .cfi_offset %c0, 318
228 #CHECK: .cfi_offset %c1, 326
229 #CHECK: .cfi_offset %c2, 334
230 #CHECK: .cfi_offset %c3, 342
231 #CHECK: .cfi_offset %c4, 350
232 #CHECK: .cfi_offset %c5, 358
233 #CHECK: .cfi_offset %c6, 366
234 #CHECK: .cfi_offset %c7, 374
235 #CHECK: .cfi_offset %c8, 382
236 #CHECK: .cfi_offset %c9, 390
237 #CHECK: .cfi_offset %c10, 398
238 #CHECK: .cfi_offset %c11, 406
239 #CHECK: .cfi_offset %c12, 414
240 #CHECK: .cfi_offset %c13, 422
241 #CHECK: .cfi_offset %c14, 430
242 #CHECK: .cfi_offset %c15, 438
244 .cfi_startproc
245 .cfi_offset %r0,0
246 .cfi_offset %r1,8
247 .cfi_offset %r2,16
248 .cfi_offset %r3,24
249 .cfi_offset %r4,32
250 .cfi_offset %r5,40
251 .cfi_offset %r6,48
252 .cfi_offset %r7,56
253 .cfi_offset %r8,64
254 .cfi_offset %r9,72
255 .cfi_offset %r10,80
256 .cfi_offset %r11,88
257 .cfi_offset %r12,96
258 .cfi_offset %r13,104
259 .cfi_offset %r14,112
260 .cfi_offset %r15,120
261 .cfi_offset %f0,128
262 .cfi_offset %f1,136
263 .cfi_offset %f2,144
264 .cfi_offset %f3,152
265 .cfi_offset %f4,160
266 .cfi_offset %f5,168
267 .cfi_offset %f6,176
268 .cfi_offset %f7,184
269 .cfi_offset %f8,192
270 .cfi_offset %f9,200
271 .cfi_offset %f10,208
272 .cfi_offset %f11,216
273 .cfi_offset %f12,224
274 .cfi_offset %f13,232
275 .cfi_offset %f14,240
276 .cfi_offset %f15,248
277 .cfi_offset %a0,256
278 .cfi_offset %a1,260
279 .cfi_offset %a2,264
280 .cfi_offset %a3,268
281 .cfi_offset %a4,272
282 .cfi_offset %a5,276
283 .cfi_offset %a6,280
284 .cfi_offset %a7,284
285 .cfi_offset %a8,288
286 .cfi_offset %r9,292
287 .cfi_offset %a10,296
288 .cfi_offset %a11,300
289 .cfi_offset %a12,304
290 .cfi_offset %a13,308
291 .cfi_offset %a14,312
292 .cfi_offset %a15,316
293 .cfi_offset %c0,318
294 .cfi_offset %c1,326
295 .cfi_offset %c2,334
296 .cfi_offset %c3,342
297 .cfi_offset %c4,350
298 .cfi_offset %c5,358
299 .cfi_offset %c6,366
300 .cfi_offset %c7,374
301 .cfi_offset %c8,382
302 .cfi_offset %c9,390
303 .cfi_offset %c10,398
304 .cfi_offset %c11,406
305 .cfi_offset %c12,414
306 .cfi_offset %c13,422
307 .cfi_offset %c14,430
308 .cfi_offset %c15,438
309 .cfi_endproc