1 # RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t
2 # RUN: FileCheck < %t %s
6 #CHECK: error: invalid operand for instruction
8 #CHECK: error: invalid operand for instruction
10 #CHECK: error: invalid operand for instruction
12 #CHECK: error: invalid operand for instruction
14 #CHECK: error: invalid operand for instruction
16 #CHECK: error: invalid operand for instruction
18 #CHECK: error: invalid operand for instruction
20 #CHECK: error: invalid operand for instruction
34 #CHECK: error: invalid operand for instruction
36 #CHECK: error: invalid operand for instruction
38 #CHECK: error: invalid operand for instruction
40 #CHECK: error: invalid operand for instruction
42 #CHECK: error: invalid operand for instruction
44 #CHECK: error: invalid operand for instruction
46 #CHECK: error: invalid operand for instruction
48 #CHECK: error: invalid operand for instruction
49 #CHECK: lgr %r0,0(%r1)
62 #CHECK: error: invalid register pair
64 #CHECK: error: invalid register pair
66 #CHECK: error: invalid register pair
68 #CHECK: error: invalid register pair
70 #CHECK: error: invalid register pair
72 #CHECK: error: invalid register pair
74 #CHECK: error: invalid register pair
76 #CHECK: error: invalid register pair
78 #CHECK: error: invalid operand for instruction
80 #CHECK: error: invalid operand for instruction
82 #CHECK: error: invalid operand for instruction
84 #CHECK: error: invalid operand for instruction
86 #CHECK: error: invalid operand for instruction
88 #CHECK: error: invalid operand for instruction
90 #CHECK: error: invalid operand for instruction
92 #CHECK: error: invalid operand for instruction
93 #CHECK: dlr %r0,0(%r1)
114 #CHECK: error: invalid operand for instruction
116 #CHECK: error: invalid operand for instruction
118 #CHECK: error: invalid operand for instruction
120 #CHECK: error: invalid operand for instruction
122 #CHECK: error: invalid operand for instruction
124 #CHECK: error: invalid operand for instruction
126 #CHECK: error: invalid operand for instruction
128 #CHECK: error: invalid operand for instruction
129 #CHECK: ler %f0,0(%r1)
142 #CHECK: error: invalid operand for instruction
144 #CHECK: error: invalid operand for instruction
146 #CHECK: error: invalid operand for instruction
148 #CHECK: error: invalid operand for instruction
150 #CHECK: error: invalid operand for instruction
152 #CHECK: error: invalid operand for instruction
154 #CHECK: error: invalid operand for instruction
156 #CHECK: error: invalid operand for instruction
157 #CHECK: ldr %f0,0(%r1)
168 # Test FP128 operands
170 #CHECK: error: invalid register pair
172 #CHECK: error: invalid register pair
174 #CHECK: error: invalid register pair
176 #CHECK: error: invalid register pair
178 #CHECK: error: invalid register pair
180 #CHECK: error: invalid register pair
182 #CHECK: error: invalid register pair
184 #CHECK: error: invalid register pair
186 #CHECK: error: invalid operand for instruction
188 #CHECK: error: invalid operand for instruction
190 #CHECK: error: invalid operand for instruction
192 #CHECK: error: invalid operand for instruction
194 #CHECK: error: invalid operand for instruction
196 #CHECK: error: invalid operand for instruction
198 #CHECK: error: invalid operand for instruction
200 #CHECK: error: invalid operand for instruction
201 #CHECK: lxr %f0,0(%r1)
220 # Test access register operands
222 #CHECK: error: invalid operand for instruction
224 #CHECK: error: invalid operand for instruction
226 #CHECK: error: invalid operand for instruction
228 #CHECK: error: invalid operand for instruction
230 #CHECK: error: invalid operand for instruction
231 #CHECK: ear %r0,0(%r1)
239 # Test control register operands
241 #CHECK: error: invalid operand for instruction
242 #CHECK: lctl %c0,%r0,0
243 #CHECK: lctl %c0,%f0,0
244 #CHECK: lctl %c0,%a0,0
246 #CHECK: lctl %c0,0(%r1),0
256 # Test general register parsing, with no predetermined class in mind.
258 #CHECK: error: register expected
259 #CHECK: .cfi_offset r0,0
260 #CHECK: error: invalid register
261 #CHECK: .cfi_offset %,0
262 #CHECK: error: invalid register
263 #CHECK: .cfi_offset %r,0
264 #CHECK: error: invalid register
265 #CHECK: .cfi_offset %f,0
266 #CHECK: error: invalid register
267 #CHECK: .cfi_offset %a,0
268 #CHECK: error: invalid register
269 #CHECK: .cfi_offset %c,0
270 #CHECK: error: invalid register
271 #CHECK: .cfi_offset %0,0
272 #CHECK: error: invalid register
273 #CHECK: .cfi_offset %r16,0
274 #CHECK: error: invalid register
275 #CHECK: .cfi_offset %f16,0
276 #CHECK: error: invalid register
277 #CHECK: .cfi_offset %a16,0
278 #CHECK: error: invalid register
279 #CHECK: .cfi_offset %c16,0
280 #CHECK: error: invalid register
281 #CHECK: .cfi_offset %reef,0
282 #CHECK: error: invalid register
283 #CHECK: .cfi_offset %arid,0
301 #CHECK: error: %r0 used in an address
302 #CHECK: sll %r2,8(%r0)
303 #CHECK: error: %r0 used in an address
305 #CHECK: error: %r0 used in an address
307 #CHECK: error: %r0 used in an address
308 #CHECK: l %r1,8(%r0,%r15)
309 #CHECK: error: %r0 used in an address
310 #CHECK: l %r1,8(%r15,%r0)