1# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t
2# RUN: FileCheck < %t %s
3
4#CHECK: error: invalid instruction
5#CHECK: foo	100, 200
6#CHECK: error: unknown token in expression
7#CHECK: foo	100(, 200
8#CHECK: error: invalid instruction
9#CHECK: foo	100(200), 300
10#CHECK: error: register expected
11#CHECK: foo	100(200,), 300
12#CHECK: error: %r0 used in an address
13#CHECK: foo	100(200,%r0), 300
14#CHECK: error: invalid instruction
15#CHECK: foo	100(200,%r1), 300
16#CHECK: error: invalid address register
17#CHECK: foo	100(%a0), 200
18#CHECK: error: %r0 used in an address
19#CHECK: foo	100(%r0), 200
20#CHECK: error: %r0 used in an address
21#CHECK: foo	100(%v1,%r0), 200
22#CHECK: error: invalid instruction
23#CHECK: foo	100(%v0,%r1), 200
24#CHECK: error: invalid instruction
25#CHECK: foo	100(%v31), 200
26#CHECK: error: invalid operand
27#CHECK: foo	100(%r1,%a0), 200
28#CHECK: error: %r0 used in an address
29#CHECK: foo	100(%r1,%r0), 200
30#CHECK: error: unexpected token in address
31#CHECK: foo	100(%r1,%r2, 200
32#CHECK: error: invalid instruction
33#CHECK: foo	100(%r1,%r2), 200
34#CHECK: error: unexpected token in argument list
35#CHECK: foo	100(%r1,%r2)(, 200
36#CHECK: error: invalid instruction
37#CHECK: foo	%r0, 200
38#CHECK: error: invalid instruction
39#CHECK: foo	%r15, 200
40#CHECK: error: invalid register
41#CHECK: foo	%r16, 200
42#CHECK: error: invalid instruction
43#CHECK: foo	%f0, 200
44#CHECK: error: invalid instruction
45#CHECK: foo	%f15, 200
46#CHECK: error: invalid register
47#CHECK: foo	%f16, 200
48#CHECK: error: invalid instruction
49#CHECK: foo	%a0, 200
50#CHECK: error: invalid instruction
51#CHECK: foo	%a15, 200
52#CHECK: error: invalid register
53#CHECK: foo	%a16, 200
54#CHECK: error: invalid instruction
55#CHECK: foo	%v0, 200
56#CHECK: error: invalid instruction
57#CHECK: foo	%v31, 200
58#CHECK: error: invalid register
59#CHECK: foo	%v32, 200
60#CHECK: error: invalid register
61#CHECK: foo	%c, 200
62#CHECK: error: invalid register
63#CHECK: foo	%, 200
64#CHECK: error: unknown token in expression
65#CHECK: foo	{, 200
66
67	foo	100, 200
68	foo	100(, 200
69	foo	100(200), 300
70	foo	100(200,), 300
71	foo	100(200,%r0), 300
72	foo	100(200,%r1), 300
73	foo	100(%a0), 200
74	foo	100(%r0), 200
75	foo	100(%v1,%r0), 200
76	foo	100(%v0,%r1), 200
77	foo	100(%v31), 200
78	foo	100(%r1,%a0), 200
79	foo	100(%r1,%r0), 200
80	foo	100(%r1,%r2, 200
81	foo	100(%r1,%r2), 200
82	foo	100(%r1,%r2)(, 200
83	foo	%r0, 200
84	foo	%r15, 200
85	foo	%r16, 200
86	foo	%f0, 200
87	foo	%f15, 200
88	foo	%f16, 200
89	foo	%a0, 200
90	foo	%a15, 200
91	foo	%a16, 200
92	foo	%v0, 200
93	foo	%v31, 200
94	foo	%v32, 200
95	foo	%c, 200
96	foo	%, 200
97	foo	{, 200
98