[RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (#78475)
[llvm-project.git] / llvm / test / MC / AMDGPU / sopp-err.s
blobbd044cb7434025b3604a64d062ee15bb9e911349
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 //===----------------------------------------------------------------------===//
203 // waitcnt
204 //===----------------------------------------------------------------------===//
206 s_waitcnt lgkmcnt(16)
207 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
208 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for lgkmcnt
210 s_waitcnt lgkmcnt(64)
211 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
213 s_waitcnt expcnt(8)
214 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for expcnt
216 s_waitcnt vmcnt(16)
217 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
218 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for vmcnt
220 s_waitcnt vmcnt(64)
221 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
223 s_waitcnt vmcnt(0xFFFFFFFFFFFF0000)
224 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
226 s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0),
227 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
229 s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)&
230 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
232 s_waitcnt vmcnt(0) & expcnt(0) & x
233 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
235 s_waitcnt vmcnt(0) & expcnt(0) x
236 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
238 s_waitcnt vmcnt(0) & expcnt(0) & 1
239 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
241 s_waitcnt vmcnt(0) & expcnt(0) 1
242 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
244 s_waitcnt vmcnt(0) & expcnt(0) x(0)
245 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name x
247 s_waitcnt vmcnt(x)
248 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
250 s_waitcnt x
251 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
253 s_waitcnt vmcnt(0
254 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
256 //===----------------------------------------------------------------------===//
257 // s_waitcnt_depctr.
258 //===----------------------------------------------------------------------===//
260 s_waitcnt_depctr 65536
261 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
262 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
263 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
265 s_waitcnt_depctr -32769
266 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
267 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
268 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
270 s_waitcnt_depctr depctr_hold_cnt(0)
271 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: depctr_hold_cnt is not supported on this GPU
272 // SICIVI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU
274 s_waitcnt_depctr depctr_sa_sdst(-1)
275 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
276 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
277 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
279 s_waitcnt_depctr depctr_va_vdst(-1)
280 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
281 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
282 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
284 s_waitcnt_depctr depctr_va_sdst(-1)
285 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
286 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
287 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
289 s_waitcnt_depctr depctr_va_ssrc(-1)
290 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
291 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
292 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
294 s_waitcnt_depctr depctr_va_vcc(-1)
295 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
296 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
297 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
299 s_waitcnt_depctr depctr_vm_vsrc(-1)
300 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
301 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
302 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
304 s_waitcnt_depctr depctr_sa_sdst(2)
305 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
306 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
307 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
309 s_waitcnt_depctr depctr_va_vdst(16)
310 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
311 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
312 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
314 s_waitcnt_depctr depctr_va_sdst(8)
315 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
316 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
317 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
319 s_waitcnt_depctr depctr_va_ssrc(2)
320 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
321 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
322 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
324 s_waitcnt_depctr depctr_va_vcc(2)
325 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
326 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
327 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
329 s_waitcnt_depctr depctr_vm_vsrc(8)
330 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
331 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
332 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
334 s_waitcnt_depctr depctr_vm_(8)
335 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
336 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
337 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
339 s_waitcnt_depctr depctr_sa_sdst(0) depctr_sa_sdst(0)
340 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
341 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
342 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
344 s_waitcnt_depctr depctr_va_vdst(0) depctr_va_vdst(0)
345 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
346 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
347 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
349 s_waitcnt_depctr depctr_va_sdst(0) depctr_va_sdst(0)
350 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
351 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
352 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
354 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_ssrc(0)
355 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
356 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
357 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
359 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0)
360 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
361 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
362 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
364 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0)
365 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
366 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
367 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
369 s_waitcnt_depctr depctr_sa_sdst(0) depctr_va_sdst(0) depctr_sa_sdst(0)
370 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
371 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
372 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
374 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_sdst(0) depctr_va_ssrc(0)
375 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
376 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
377 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
379 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0) depctr_va_sdst(0)
380 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
381 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
382 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
384 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0) depctr_va_sdst(0)
385 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
386 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
387 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
389 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc 0)
390 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
391 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a left parenthesis
392 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
394 s_waitcnt_depctr depctr_va_sdst(0) 0depctr_vm_vsrc(0)
395 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
396 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
397 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
399 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(x)
400 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
401 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
402 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
404 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(0; & depctr_va_sdst(0)
405 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
406 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a closing parenthesis
407 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
409 s_waitcnt_depctr depctr_vm_vsrc 0) depctr_vm_vsrc(0) depctr_va_sdst(0)
410 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
411 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
412 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
414 s_waitcnt_depctr depctr_vm_vsrc(0) ,
415 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
416 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
417 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
419 s_waitcnt_depctr depctr_vm_vsrc(0) , &
420 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
421 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
422 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
424 s_waitcnt_depctr depctr_vm_vsrc(0) &
425 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
426 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
427 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
429 s_waitcnt_depctr depctr_vm_vsrc(0) & &
430 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
431 // GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
432 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
434 //===----------------------------------------------------------------------===//
435 // s_branch.
436 //===----------------------------------------------------------------------===//
438 s_branch 0x80000000ffff
439 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
441 s_branch 0x10000
442 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
444 s_branch -32769
445 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
447 s_branch 1.0
448 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
450 s_branch s0
451 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
453 s_branch offset:1
454 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand