[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / sopp-err.s
blob2a78940655fc72df64d2d342063f34c205b2194a
1 // RUN: not llvm-mc -arch=amdgcn -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=fiji -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=VI --check-prefix=SICIVI %s
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN %s
6 //===----------------------------------------------------------------------===//
7 // sendmsg
8 //===----------------------------------------------------------------------===//
10 s_sendmsg sendmsg(MSG_INTERRUPTX)
11 // GCN: error: expected absolute expression
13 s_sendmsg sendmsg(1 -)
14 // GCN: error: unknown token in expression
16 s_sendmsg sendmsg(MSG_INTERRUPT, 0)
17 // GCN: error: message does not support operations
19 s_sendmsg sendmsg(MSG_INTERRUPT, 0, 0)
20 // GCN: error: message does not support operations
22 s_sendmsg sendmsg(MSG_GS)
23 // GCN: error: missing message operation
25 s_sendmsg sendmsg(MSG_GS, GS_OP_NOP)
26 // GCN: error: invalid operation id
28 s_sendmsg sendmsg(MSG_GS, SYSMSG_OP_ECC_ERR_INTERRUPT)
29 // GCN: error: expected absolute expression
31 s_sendmsg sendmsg(MSG_GS, 0)
32 // GCN: error: invalid operation id
34 s_sendmsg sendmsg(MSG_GS, -1)
35 // GCN: error: invalid operation id
37 s_sendmsg sendmsg(MSG_GS, 4)
38 // GCN: error: invalid operation id
40 s_sendmsg sendmsg(MSG_GS, 8)
41 // GCN: error: invalid operation id
43 s_sendmsg sendmsg(15, -1)
44 // GCN: error: invalid operation id
46 s_sendmsg sendmsg(15, 8)
47 // GCN: error: invalid operation id
49 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0)
50 // GCN: error: expected a closing parenthesis
52 s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0)
53 // GCN: error: expected absolute expression
55 s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0)
56 // GCN: error: expected absolute expression
58 s_sendmsg sendmsg(MSG_GS, 1 -)
59 // GCN: error: unknown token in expression
61 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4)
62 // GCN: error: invalid message stream id
64 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1 -)
65 // GCN: error: unknown token in expression
67 s_sendmsg sendmsg(2, 3, 0, 0)
68 // GCN: error: expected a closing parenthesis
70 s_sendmsg sendmsg(2, 2, -1)
71 // GCN: error: invalid message stream id
73 s_sendmsg sendmsg(2, 2, 4)
74 // GCN: error: invalid message stream id
76 s_sendmsg sendmsg(2, 2, 0, 0)
77 // GCN: error: expected a closing parenthesis
79 s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0)
80 // GCN: error: message operation does not support streams
82 s_sendmsg sendmsg(MSG_GS_DONE, 0, 0)
83 // GCN: error: message operation does not support streams
85 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ)
86 // SICIVI: error: invalid message id
88 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ, 0)
89 // SICIVI: error: invalid message id
91 s_sendmsg sendmsg(-1)
92 // SICIVI: error: invalid message id
94 s_sendmsg sendmsg(16)
95 // SICIVI: error: invalid message id
97 s_sendmsg sendmsg(MSG_SYSMSG)
98 // GCN: error: missing message operation
100 s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0)
101 // GCN: error: message operation does not support streams
103 s_sendmsg sendmsg(MSG_SYSMSG, 0)
104 // GCN: error: invalid operation id
106 s_sendmsg sendmsg(MSG_SYSMSG, 5)
107 // GCN: error: invalid operation id
109 //===----------------------------------------------------------------------===//
110 // waitcnt
111 //===----------------------------------------------------------------------===//
113 s_waitcnt lgkmcnt(16)
114 // SICIVI: error: too large value for lgkmcnt
116 s_waitcnt lgkmcnt(64)
117 // GCN: error: too large value for lgkmcnt
119 s_waitcnt expcnt(8)
120 // GCN: error: too large value for expcnt
122 s_waitcnt vmcnt(16)
123 // SICIVI: error: too large value for vmcnt
125 s_waitcnt vmcnt(64)
126 // GFX10: error: too large value for vmcnt
128 s_waitcnt vmcnt(0xFFFFFFFFFFFF0000)
129 // GCN: error: too large value for vmcnt
131 s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0),
132 // GCN: error: expected a counter name
134 s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)&
135 // GCN: error: expected a counter name
137 s_waitcnt vmcnt(0) & expcnt(0) & x
138 // GCN: error: expected a left parenthesis
140 s_waitcnt vmcnt(0) & expcnt(0) x
141 // GCN: error: expected a left parenthesis
143 s_waitcnt vmcnt(0) & expcnt(0) & 1
144 // GCN: error: expected a counter name
146 s_waitcnt vmcnt(0) & expcnt(0) 1
147 // GCN: error: expected a counter name
149 s_waitcnt vmcnt(0) & expcnt(0) x(0)
150 // GCN: error: invalid counter name x
152 s_waitcnt vmcnt(x)
153 // GCN: error: expected absolute expression
155 s_waitcnt x
156 // GCN: error: expected absolute expression
158 s_waitcnt vmcnt(0
159 // GCN: error: expected a closing parenthesis
161 s_branch 0x80000000ffff
162 // GCN: error: expected a 16-bit signed jump offset
164 s_branch 0x10000
165 // GCN: error: expected a 16-bit signed jump offset
167 s_branch -32769
168 // GCN: error: expected a 16-bit signed jump offset
170 s_branch 1.0
171 // GCN: error: expected a 16-bit signed jump offset
173 s_branch s0
174 // GCN: error: invalid operand for instruction
176 s_branch offset:1
177 // GCN: error: not a valid operand