[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AMDGPU / sopp-err.s
blob8b7ff74b210513ae07b3a014e7cb939317bfa13e
1 // RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,SICI,SICIVI --implicit-check-not=error: %s
2 // RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,SICI,SICIVI --implicit-check-not=error: %s
3 // RUN: not llvm-mc -triple=amdgcn -mcpu=fiji %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,VI,SICIVI --implicit-check-not=error: %s
4 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,GFX10 --implicit-check-not=error: %s
5 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 %s 2>&1 | FileCheck --check-prefixes=GCN,GFX11PLUS,GFX11 --implicit-check-not=error: %s
6 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 %s 2>&1 | FileCheck --check-prefixes=GCN,GFX11PLUS,GFX12 --implicit-check-not=error: %s
8 //===----------------------------------------------------------------------===//
9 // sendmsg
10 //===----------------------------------------------------------------------===//
12 s_sendmsg sendmsg(MSG_INTERRUPTX)
13 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression
15 s_sendmsg sendmsg(1 -)
16 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
18 s_sendmsg sendmsg(MSG_INTERRUPT, 0)
19 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations
21 s_sendmsg sendmsg(MSG_INTERRUPT, 0, 0)
22 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations
24 s_sendmsg sendmsg(MSG_GS)
25 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation
26 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
28 s_sendmsg sendmsg(MSG_GS, GS_OP_NOP)
29 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
30 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
32 s_sendmsg sendmsg(MSG_GS, SYSMSG_OP_ECC_ERR_INTERRUPT)
33 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression
35 s_sendmsg sendmsg(MSG_GS, 0)
36 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
37 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
39 s_sendmsg sendmsg(MSG_GS, -1)
40 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
41 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
43 s_sendmsg sendmsg(MSG_GS, 4)
44 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
45 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
47 s_sendmsg sendmsg(MSG_GS, 8)
48 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
49 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
51 s_sendmsg sendmsg(15, -1)
52 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
54 s_sendmsg sendmsg(15, 8)
55 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
57 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0)
58 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
60 s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0)
61 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression
63 s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0)
64 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression
66 s_sendmsg sendmsg(MSG_GS, 1 -)
67 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
69 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4)
70 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
71 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
73 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1 -)
74 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
76 s_sendmsg sendmsg(2, 3, 0, 0)
77 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
79 s_sendmsg sendmsg(2, 2, -1)
80 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
82 s_sendmsg sendmsg(2, 2, 4)
83 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
85 s_sendmsg sendmsg(2, 2, 0, 0)
86 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
88 s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0)
89 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
90 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
92 s_sendmsg sendmsg(MSG_GS_DONE, 0, 0)
93 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
94 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
96 s_sendmsg sendmsg(MSG_HS_TESSFACTOR)
97 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
98 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
99 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
101 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
102 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
103 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
104 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
106 s_sendmsg sendmsg(MSG_SAVEWAVE)
107 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
108 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
110 s_sendmsg sendmsg(MSG_STALL_WAVE_GEN)
111 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
112 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
113 // GFX12: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
115 s_sendmsg sendmsg(MSG_HALT_WAVES)
116 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
117 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
118 // GFX12: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
120 s_sendmsg sendmsg(MSG_ORDERED_PS_DONE)
121 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
122 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
123 // GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
125 s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC)
126 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
127 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
128 // GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
130 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ)
131 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
132 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
134 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ, 0)
135 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
136 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
137 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: message does not support operations
138 // GFX11PLUS: :[[@LINE-4]]:{{[0-9]+}}: error: message does not support operations
140 s_sendmsg sendmsg(MSG_GET_DOORBELL)
141 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
142 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
143 // GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
145 s_sendmsg sendmsg(MSG_GET_DDID)
146 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
147 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
148 // GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
150 s_sendmsg sendmsg(MSG_RTN_GET_DOORBELL)
151 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
152 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
153 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
155 s_sendmsg sendmsg(MSG_RTN_GET_DDID)
156 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
157 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
158 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
160 s_sendmsg sendmsg(MSG_RTN_GET_TMA)
161 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
162 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
163 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
165 s_sendmsg sendmsg(MSG_RTN_GET_REALTIME)
166 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
167 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
168 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
170 s_sendmsg sendmsg(MSG_RTN_SAVE_WAVE)
171 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
172 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
173 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
175 s_sendmsg sendmsg(MSG_RTN_GET_TBA)
176 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
177 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
178 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
180 s_sendmsg sendmsg(MSG_RTN_GET_SE_AID_ID)
181 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
182 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
184 s_sendmsg sendmsg(-1)
185 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id
187 s_sendmsg sendmsg(16)
188 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id
190 s_sendmsg sendmsg(MSG_SYSMSG)
191 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation
193 s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0)
194 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
196 s_sendmsg sendmsg(MSG_SYSMSG, 0)
197 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
199 s_sendmsg sendmsg(MSG_SYSMSG, 5)
200 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
202 s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_HOST_TRAP_ACK)
203 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: specified operation id is not supported on this GPU
204 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified operation id is not supported on this GPU
206 //===----------------------------------------------------------------------===//
207 // waitcnt
208 //===----------------------------------------------------------------------===//
210 s_waitcnt lgkmcnt(16)
211 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
212 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for lgkmcnt
214 s_waitcnt lgkmcnt(64)
215 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
217 s_waitcnt expcnt(8)
218 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for expcnt
220 s_waitcnt vmcnt(16)
221 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
222 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for vmcnt
224 s_waitcnt vmcnt(64)
225 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
227 s_waitcnt vmcnt(0xFFFFFFFFFFFF0000)
228 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
230 s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0),
231 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
233 s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)&
234 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
236 s_waitcnt vmcnt(0) & expcnt(0) & x
237 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
239 s_waitcnt vmcnt(0) & expcnt(0) x
240 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
242 s_waitcnt vmcnt(0) & expcnt(0) & 1
243 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
245 s_waitcnt vmcnt(0) & expcnt(0) 1
246 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
248 s_waitcnt vmcnt(0) & expcnt(0) x(0)
249 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name x
251 s_waitcnt vmcnt(x)
252 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
254 s_waitcnt x
255 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
257 s_waitcnt vmcnt(0
258 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
260 //===----------------------------------------------------------------------===//
261 // s_waitcnt_depctr.
262 //===----------------------------------------------------------------------===//
264 s_waitcnt_depctr 65536
265 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
266 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
267 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
269 s_waitcnt_depctr -32769
270 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
271 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
272 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
274 s_waitcnt_depctr depctr_hold_cnt(0)
275 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: depctr_hold_cnt is not supported on this GPU
276 // SICIVI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU
278 s_waitcnt_depctr depctr_sa_sdst(-1)
279 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
280 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
281 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
283 s_waitcnt_depctr depctr_va_vdst(-1)
284 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
285 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
286 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
288 s_waitcnt_depctr depctr_va_sdst(-1)
289 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
290 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
291 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
293 s_waitcnt_depctr depctr_va_ssrc(-1)
294 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
295 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
296 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
298 s_waitcnt_depctr depctr_va_vcc(-1)
299 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
300 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
301 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
303 s_waitcnt_depctr depctr_vm_vsrc(-1)
304 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
305 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
306 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
308 s_waitcnt_depctr depctr_sa_sdst(2)
309 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
310 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
311 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
313 s_waitcnt_depctr depctr_va_vdst(16)
314 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
315 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
316 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
318 s_waitcnt_depctr depctr_va_sdst(8)
319 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
320 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
321 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
323 s_waitcnt_depctr depctr_va_ssrc(2)
324 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
325 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
326 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
328 s_waitcnt_depctr depctr_va_vcc(2)
329 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
330 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
331 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
333 s_waitcnt_depctr depctr_vm_vsrc(8)
334 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
335 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
336 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
338 s_waitcnt_depctr depctr_vm_(8)
339 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
340 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
341 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
343 s_waitcnt_depctr depctr_sa_sdst(0) depctr_sa_sdst(0)
344 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
345 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
346 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
348 s_waitcnt_depctr depctr_va_vdst(0) depctr_va_vdst(0)
349 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
350 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
351 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
353 s_waitcnt_depctr depctr_va_sdst(0) depctr_va_sdst(0)
354 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
355 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
356 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
358 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_ssrc(0)
359 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
360 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
361 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
363 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0)
364 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
365 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
366 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
368 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0)
369 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
370 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
371 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
373 s_waitcnt_depctr depctr_sa_sdst(0) depctr_va_sdst(0) depctr_sa_sdst(0)
374 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
375 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
376 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
378 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_sdst(0) depctr_va_ssrc(0)
379 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
380 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
381 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
383 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0) depctr_va_sdst(0)
384 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
385 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
386 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
388 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0) depctr_va_sdst(0)
389 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
390 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
391 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
393 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc 0)
394 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
395 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a left parenthesis
396 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
398 s_waitcnt_depctr depctr_va_sdst(0) 0depctr_vm_vsrc(0)
399 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
400 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
401 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
403 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(x)
404 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
405 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
406 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
408 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(0; & depctr_va_sdst(0)
409 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
410 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a closing parenthesis
411 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
413 s_waitcnt_depctr depctr_vm_vsrc 0) depctr_vm_vsrc(0) depctr_va_sdst(0)
414 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
415 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
416 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
418 s_waitcnt_depctr depctr_vm_vsrc(0) ,
419 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
420 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
421 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
423 s_waitcnt_depctr depctr_vm_vsrc(0) , &
424 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
425 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
426 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
428 s_waitcnt_depctr depctr_vm_vsrc(0) &
429 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
430 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
431 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
433 s_waitcnt_depctr depctr_vm_vsrc(0) & &
434 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
435 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
436 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
438 //===----------------------------------------------------------------------===//
439 // s_branch.
440 //===----------------------------------------------------------------------===//
442 s_branch 0x80000000ffff
443 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
445 s_branch 0x10000
446 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
448 s_branch -32769
449 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
451 s_branch 1.0
452 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
454 s_branch s0
455 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
457 s_branch offset:1
458 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand