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]
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]
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]
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]
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]
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]
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]
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]
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]
171 st %r0, 4095(%r1,%r15)
172 st %r0, 4095(%r15,%r1)
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