Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / sopp-err.s
blobc7f28faa55763befd6eec5003ea766e6b15cc5b8
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,GFX11 --implicit-check-not=error: %s
7 //===----------------------------------------------------------------------===//
8 // sendmsg
9 //===----------------------------------------------------------------------===//
11 s_sendmsg sendmsg(MSG_INTERRUPTX)
12 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression
14 s_sendmsg sendmsg(1 -)
15 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
17 s_sendmsg sendmsg(MSG_INTERRUPT, 0)
18 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations
20 s_sendmsg sendmsg(MSG_INTERRUPT, 0, 0)
21 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations
23 s_sendmsg sendmsg(MSG_GS)
24 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation
25 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
27 s_sendmsg sendmsg(MSG_GS, GS_OP_NOP)
28 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
29 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
31 s_sendmsg sendmsg(MSG_GS, SYSMSG_OP_ECC_ERR_INTERRUPT)
32 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression
34 s_sendmsg sendmsg(MSG_GS, 0)
35 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
36 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
38 s_sendmsg sendmsg(MSG_GS, -1)
39 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
40 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
42 s_sendmsg sendmsg(MSG_GS, 4)
43 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
44 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
46 s_sendmsg sendmsg(MSG_GS, 8)
47 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
48 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
50 s_sendmsg sendmsg(15, -1)
51 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
53 s_sendmsg sendmsg(15, 8)
54 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
56 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0)
57 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
59 s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0)
60 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression
62 s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0)
63 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression
65 s_sendmsg sendmsg(MSG_GS, 1 -)
66 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
68 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4)
69 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
70 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
72 s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1 -)
73 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression
75 s_sendmsg sendmsg(2, 3, 0, 0)
76 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
78 s_sendmsg sendmsg(2, 2, -1)
79 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
81 s_sendmsg sendmsg(2, 2, 4)
82 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id
84 s_sendmsg sendmsg(2, 2, 0, 0)
85 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
87 s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0)
88 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
89 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
91 s_sendmsg sendmsg(MSG_GS_DONE, 0, 0)
92 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
93 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
95 s_sendmsg sendmsg(MSG_HS_TESSFACTOR)
96 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
97 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
98 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
100 s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
101 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
102 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
103 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
105 s_sendmsg sendmsg(MSG_SAVEWAVE)
106 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
107 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
109 s_sendmsg sendmsg(MSG_STALL_WAVE_GEN)
110 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
111 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
113 s_sendmsg sendmsg(MSG_HALT_WAVES)
114 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
115 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
117 s_sendmsg sendmsg(MSG_ORDERED_PS_DONE)
118 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
119 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
120 // GFX11: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
122 s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC)
123 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
124 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
125 // GFX11: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
127 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ)
128 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
129 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
131 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ, 0)
132 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
133 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
134 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: message does not support operations
135 // GFX11: :[[@LINE-4]]:{{[0-9]+}}: error: message does not support operations
137 s_sendmsg sendmsg(MSG_GET_DOORBELL)
138 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
139 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
140 // GFX11: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
142 s_sendmsg sendmsg(MSG_GET_DDID)
143 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
144 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
145 // GFX11: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
147 s_sendmsg sendmsg(MSG_RTN_GET_DOORBELL)
148 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
149 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
150 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
152 s_sendmsg sendmsg(MSG_RTN_GET_DDID)
153 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
154 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
155 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
157 s_sendmsg sendmsg(MSG_RTN_GET_TMA)
158 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
159 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
160 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
162 s_sendmsg sendmsg(MSG_RTN_GET_REALTIME)
163 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
164 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
165 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
167 s_sendmsg sendmsg(MSG_RTN_SAVE_WAVE)
168 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
169 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
170 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
172 s_sendmsg sendmsg(MSG_RTN_GET_TBA)
173 // SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
174 // VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
175 // GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU
177 s_sendmsg sendmsg(-1)
178 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id
180 s_sendmsg sendmsg(16)
181 // PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id
183 s_sendmsg sendmsg(MSG_SYSMSG)
184 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation
186 s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0)
187 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams
189 s_sendmsg sendmsg(MSG_SYSMSG, 0)
190 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
192 s_sendmsg sendmsg(MSG_SYSMSG, 5)
193 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id
195 //===----------------------------------------------------------------------===//
196 // waitcnt
197 //===----------------------------------------------------------------------===//
199 s_waitcnt lgkmcnt(16)
200 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
201 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for lgkmcnt
203 s_waitcnt lgkmcnt(64)
204 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt
206 s_waitcnt expcnt(8)
207 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for expcnt
209 s_waitcnt vmcnt(16)
210 // VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
211 // SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for vmcnt
213 s_waitcnt vmcnt(64)
214 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
216 s_waitcnt vmcnt(0xFFFFFFFFFFFF0000)
217 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt
219 s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0),
220 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
222 s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)&
223 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
225 s_waitcnt vmcnt(0) & expcnt(0) & x
226 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
228 s_waitcnt vmcnt(0) & expcnt(0) x
229 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
231 s_waitcnt vmcnt(0) & expcnt(0) & 1
232 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
234 s_waitcnt vmcnt(0) & expcnt(0) 1
235 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
237 s_waitcnt vmcnt(0) & expcnt(0) x(0)
238 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name x
240 s_waitcnt vmcnt(x)
241 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
243 s_waitcnt x
244 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
246 s_waitcnt vmcnt(0
247 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
249 //===----------------------------------------------------------------------===//
250 // s_waitcnt_depctr.
251 //===----------------------------------------------------------------------===//
253 s_waitcnt_depctr 65536
254 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
255 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
256 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
258 s_waitcnt_depctr -32769
259 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
260 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction
261 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
263 s_waitcnt_depctr depctr_hold_cnt(0)
264 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: depctr_hold_cnt is not supported on this GPU
265 // SICIVI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU
267 s_waitcnt_depctr depctr_sa_sdst(-1)
268 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
269 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
270 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
272 s_waitcnt_depctr depctr_va_vdst(-1)
273 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
274 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
275 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
277 s_waitcnt_depctr depctr_va_sdst(-1)
278 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
279 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
280 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
282 s_waitcnt_depctr depctr_va_ssrc(-1)
283 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
284 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
285 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
287 s_waitcnt_depctr depctr_va_vcc(-1)
288 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
289 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
290 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
292 s_waitcnt_depctr depctr_vm_vsrc(-1)
293 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
294 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
295 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
297 s_waitcnt_depctr depctr_sa_sdst(2)
298 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
299 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst
300 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
302 s_waitcnt_depctr depctr_va_vdst(16)
303 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
304 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst
305 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
307 s_waitcnt_depctr depctr_va_sdst(8)
308 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
309 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst
310 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
312 s_waitcnt_depctr depctr_va_ssrc(2)
313 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
314 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc
315 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
317 s_waitcnt_depctr depctr_va_vcc(2)
318 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
319 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc
320 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
322 s_waitcnt_depctr depctr_vm_vsrc(8)
323 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
324 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc
325 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
327 s_waitcnt_depctr depctr_vm_(8)
328 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
329 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: invalid counter name depctr_vm_
330 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
332 s_waitcnt_depctr depctr_sa_sdst(0) depctr_sa_sdst(0)
333 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
334 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
335 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
337 s_waitcnt_depctr depctr_va_vdst(0) depctr_va_vdst(0)
338 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
339 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst
340 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
342 s_waitcnt_depctr depctr_va_sdst(0) depctr_va_sdst(0)
343 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
344 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst
345 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
347 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_ssrc(0)
348 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
349 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
350 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
352 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0)
353 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
354 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
355 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
357 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0)
358 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
359 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
360 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
362 s_waitcnt_depctr depctr_sa_sdst(0) depctr_va_sdst(0) depctr_sa_sdst(0)
363 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
364 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst
365 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
367 s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_sdst(0) depctr_va_ssrc(0)
368 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
369 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc
370 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
372 s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0) depctr_va_sdst(0)
373 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
374 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc
375 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
377 s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0) depctr_va_sdst(0)
378 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
379 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc
380 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
382 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc 0)
383 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis
384 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a left parenthesis
385 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
387 s_waitcnt_depctr depctr_va_sdst(0) 0depctr_vm_vsrc(0)
388 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
389 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
390 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
392 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(x)
393 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
394 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
395 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
397 s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(0; & depctr_va_sdst(0)
398 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis
399 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a closing parenthesis
400 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
402 s_waitcnt_depctr depctr_vm_vsrc 0) depctr_vm_vsrc(0) depctr_va_sdst(0)
403 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression
404 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression
405 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
407 s_waitcnt_depctr depctr_vm_vsrc(0) ,
408 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
409 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
410 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
412 s_waitcnt_depctr depctr_vm_vsrc(0) , &
413 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
414 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
415 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
417 s_waitcnt_depctr depctr_vm_vsrc(0) &
418 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
419 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
420 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
422 s_waitcnt_depctr depctr_vm_vsrc(0) & &
423 // GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name
424 // GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name
425 // SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU
427 //===----------------------------------------------------------------------===//
428 // s_branch.
429 //===----------------------------------------------------------------------===//
431 s_branch 0x80000000ffff
432 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
434 s_branch 0x10000
435 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
437 s_branch -32769
438 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
440 s_branch 1.0
441 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset
443 s_branch s0
444 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
446 s_branch offset:1
447 // GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand