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 register
20 #CHECK: error: unexpected token in argument list
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 register
48 #CHECK: error: unexpected token in argument list
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 register
92 #CHECK: error: unexpected token in argument list
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 register
128 #CHECK: error: unexpected token in argument list
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 register
156 #CHECK: error: unexpected token in argument list
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 register
200 #CHECK: error: unexpected token in argument list
201 #CHECK: lxr %f0,0(%r1)
220 # Test that a high (>=16) vector register is not accepted in a non-vector
223 #CHECK: error: invalid register
224 #CHECK: .insn rr,0x1800,%v16,%v0
225 .insn rr,0x1800,%v16,%v0
227 # Test access register operands
229 #CHECK: error: invalid operand for instruction
231 #CHECK: error: invalid operand for instruction
233 #CHECK: error: invalid operand for instruction
235 #CHECK: error: invalid register
237 #CHECK: error: unexpected token in argument list
238 #CHECK: ear %r0,0(%r1)
246 # Test control register operands
248 #CHECK: error: invalid operand for instruction
249 #CHECK: lctl %c0,%r0,0
250 #CHECK: lctl %c0,%f0,0
251 #CHECK: lctl %c0,%a0,0
252 #CHECK: lctl %c0,16,0
253 #CHECK: lctl %c0,0(%r1),0
263 # Test general register parsing, with no predetermined class in mind.
265 #CHECK: error: register expected
266 #CHECK: .cfi_offset r0,0
267 #CHECK: error: invalid register
268 #CHECK: .cfi_offset %,0
269 #CHECK: error: invalid register
270 #CHECK: .cfi_offset %r,0
271 #CHECK: error: invalid register
272 #CHECK: .cfi_offset %f,0
273 #CHECK: error: invalid register
274 #CHECK: .cfi_offset %a,0
275 #CHECK: error: invalid register
276 #CHECK: .cfi_offset %c,0
277 #CHECK: error: invalid register
278 #CHECK: .cfi_offset %0,0
279 #CHECK: error: invalid register
280 #CHECK: .cfi_offset %r16,0
281 #CHECK: error: invalid register
282 #CHECK: .cfi_offset %f16,0
283 #CHECK: error: invalid register
284 #CHECK: .cfi_offset %a16,0
285 #CHECK: error: invalid register
286 #CHECK: .cfi_offset %c16,0
287 #CHECK: error: invalid register
288 #CHECK: .cfi_offset %reef,0
289 #CHECK: error: invalid register
290 #CHECK: .cfi_offset %arid,0