459 lines · plain
1// RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,SICI,SICIVI --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,SICI,SICIVI --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=fiji %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,VI,SICIVI --implicit-check-not=error: %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefixes=GCN,PREGFX11,GFX10 --implicit-check-not=error: %s5// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 %s 2>&1 | FileCheck --check-prefixes=GCN,GFX11PLUS,GFX11 --implicit-check-not=error: %s6// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 %s 2>&1 | FileCheck --check-prefixes=GCN,GFX11PLUS,GFX12 --implicit-check-not=error: %s7 8//===----------------------------------------------------------------------===//9// sendmsg10//===----------------------------------------------------------------------===//11 12s_sendmsg sendmsg(MSG_INTERRUPTX)13// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression14 15s_sendmsg sendmsg(1 -)16// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression17 18s_sendmsg sendmsg(MSG_INTERRUPT, 0)19// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations20 21s_sendmsg sendmsg(MSG_INTERRUPT, 0, 0)22// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations23 24s_sendmsg sendmsg(MSG_GS)25// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation26// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU27 28s_sendmsg sendmsg(MSG_GS, GS_OP_NOP)29// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id30// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU31 32s_sendmsg sendmsg(MSG_GS, SYSMSG_OP_ECC_ERR_INTERRUPT)33// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression34 35s_sendmsg sendmsg(MSG_GS, 0)36// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id37// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU38 39s_sendmsg sendmsg(MSG_GS, -1)40// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id41// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU42 43s_sendmsg sendmsg(MSG_GS, 4)44// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id45// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU46 47s_sendmsg sendmsg(MSG_GS, 8)48// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id49// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU50 51s_sendmsg sendmsg(15, -1)52// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id53 54s_sendmsg sendmsg(15, 8)55// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id56 57s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0)58// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis59 60s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0)61// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression62 63s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0)64// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression65 66s_sendmsg sendmsg(MSG_GS, 1 -)67// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression68 69s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4)70// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id71// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU72 73s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1 -)74// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression75 76s_sendmsg sendmsg(2, 3, 0, 0)77// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis78 79s_sendmsg sendmsg(2, 2, -1)80// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id81 82s_sendmsg sendmsg(2, 2, 4)83// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id84 85s_sendmsg sendmsg(2, 2, 0, 0)86// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis87 88s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0)89// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams90// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU91 92s_sendmsg sendmsg(MSG_GS_DONE, 0, 0)93// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams94// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU95 96s_sendmsg sendmsg(MSG_HS_TESSFACTOR)97// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU98// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU99// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU100 101s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)102// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU103// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU104// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU105 106s_sendmsg sendmsg(MSG_SAVEWAVE)107// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU108// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU109 110s_sendmsg sendmsg(MSG_STALL_WAVE_GEN)111// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU112// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU113// GFX12: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU114 115s_sendmsg sendmsg(MSG_HALT_WAVES)116// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU117// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU118// GFX12: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU119 120s_sendmsg sendmsg(MSG_ORDERED_PS_DONE)121// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU122// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU123// GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU124 125s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC)126// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU127// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU128// GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU129 130s_sendmsg sendmsg(MSG_GS_ALLOC_REQ)131// VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU132// SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU133 134s_sendmsg sendmsg(MSG_GS_ALLOC_REQ, 0)135// VI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU136// SICI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU137// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: message does not support operations138// GFX11PLUS: :[[@LINE-4]]:{{[0-9]+}}: error: message does not support operations139 140s_sendmsg sendmsg(MSG_GET_DOORBELL)141// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU142// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU143// GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU144 145s_sendmsg sendmsg(MSG_GET_DDID)146// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU147// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU148// GFX11PLUS: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU149 150s_sendmsg sendmsg(MSG_RTN_GET_DOORBELL)151// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU152// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU153// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU154 155s_sendmsg sendmsg(MSG_RTN_GET_DDID)156// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU157// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU158// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU159 160s_sendmsg sendmsg(MSG_RTN_GET_TMA)161// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU162// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU163// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU164 165s_sendmsg sendmsg(MSG_RTN_GET_REALTIME)166// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU167// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU168// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU169 170s_sendmsg sendmsg(MSG_RTN_SAVE_WAVE)171// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU172// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU173// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU174 175s_sendmsg sendmsg(MSG_RTN_GET_TBA)176// SICI: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU177// VI: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU178// GFX10: :[[@LINE-3]]:{{[0-9]+}}: error: specified message id is not supported on this GPU179 180s_sendmsg sendmsg(MSG_RTN_GET_SE_AID_ID)181// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: specified message id is not supported on this GPU182// GFX11: :[[@LINE-2]]:{{[0-9]+}}: error: specified message id is not supported on this GPU183 184s_sendmsg sendmsg(-1)185// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id186 187s_sendmsg sendmsg(16)188// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id189 190s_sendmsg sendmsg(MSG_SYSMSG)191// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation192 193s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0)194// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams195 196s_sendmsg sendmsg(MSG_SYSMSG, 0)197// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id198 199s_sendmsg sendmsg(MSG_SYSMSG, 5)200// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id201 202s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_HOST_TRAP_ACK)203// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: specified operation id is not supported on this GPU204// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified operation id is not supported on this GPU205 206//===----------------------------------------------------------------------===//207// waitcnt208//===----------------------------------------------------------------------===//209 210s_waitcnt lgkmcnt(16)211// VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt212// SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for lgkmcnt213 214s_waitcnt lgkmcnt(64)215// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt216 217s_waitcnt expcnt(8)218// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for expcnt219 220s_waitcnt vmcnt(16)221// VI: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt222// SICI: :[[@LINE-2]]:{{[0-9]+}}: error: too large value for vmcnt223 224s_waitcnt vmcnt(64)225// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt226 227s_waitcnt vmcnt(0xFFFFFFFFFFFF0000)228// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt229 230s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0),231// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name232 233s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)&234// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name235 236s_waitcnt vmcnt(0) & expcnt(0) & x237// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis238 239s_waitcnt vmcnt(0) & expcnt(0) x240// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis241 242s_waitcnt vmcnt(0) & expcnt(0) & 1243// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name244 245s_waitcnt vmcnt(0) & expcnt(0) 1246// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name247 248s_waitcnt vmcnt(0) & expcnt(0) x(0)249// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name x250 251s_waitcnt vmcnt(x)252// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression253 254s_waitcnt x255// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression256 257s_waitcnt vmcnt(0258// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis259 260//===----------------------------------------------------------------------===//261// s_waitcnt_depctr.262//===----------------------------------------------------------------------===//263 264s_waitcnt_depctr 65536265// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction266// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction267// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU268 269s_waitcnt_depctr -32769270// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction271// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction272// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU273 274s_waitcnt_depctr depctr_hold_cnt(0)275// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: depctr_hold_cnt is not supported on this GPU276// SICIVI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU277 278s_waitcnt_depctr depctr_sa_sdst(-1)279// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst280// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst281// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU282 283s_waitcnt_depctr depctr_va_vdst(-1)284// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst285// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst286// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU287 288s_waitcnt_depctr depctr_va_sdst(-1)289// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst290// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst291// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU292 293s_waitcnt_depctr depctr_va_ssrc(-1)294// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc295// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc296// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU297 298s_waitcnt_depctr depctr_va_vcc(-1)299// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc300// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc301// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU302 303s_waitcnt_depctr depctr_vm_vsrc(-1)304// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc305// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc306// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU307 308s_waitcnt_depctr depctr_sa_sdst(2)309// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst310// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_sa_sdst311// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU312 313s_waitcnt_depctr depctr_va_vdst(16)314// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst315// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vdst316// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU317 318s_waitcnt_depctr depctr_va_sdst(8)319// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst320// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_sdst321// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU322 323s_waitcnt_depctr depctr_va_ssrc(2)324// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc325// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_ssrc326// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU327 328s_waitcnt_depctr depctr_va_vcc(2)329// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc330// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_va_vcc331// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU332 333s_waitcnt_depctr depctr_vm_vsrc(8)334// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc335// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: invalid value for depctr_vm_vsrc336// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU337 338s_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 GPU342 343s_waitcnt_depctr depctr_sa_sdst(0) depctr_sa_sdst(0)344// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst345// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst346// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU347 348s_waitcnt_depctr depctr_va_vdst(0) depctr_va_vdst(0)349// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst350// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vdst351// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU352 353s_waitcnt_depctr depctr_va_sdst(0) depctr_va_sdst(0)354// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst355// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_sdst356// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU357 358s_waitcnt_depctr depctr_va_ssrc(0) depctr_va_ssrc(0)359// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc360// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc361// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU362 363s_waitcnt_depctr depctr_va_vcc(0) depctr_va_vcc(0)364// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc365// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc366// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU367 368s_waitcnt_depctr depctr_vm_vsrc(0) depctr_vm_vsrc(0)369// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc370// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc371// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU372 373s_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_sdst375// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_sa_sdst376// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU377 378s_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_ssrc380// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_ssrc381// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU382 383s_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_vcc385// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_va_vcc386// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU387 388s_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_vsrc390// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: duplicate counter name depctr_vm_vsrc391// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU392 393s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc 0)394// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis395// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a left parenthesis396// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU397 398s_waitcnt_depctr depctr_va_sdst(0) 0depctr_vm_vsrc(0)399// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name400// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name401// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU402 403s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(x)404// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression405// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression406// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU407 408s_waitcnt_depctr depctr_va_sdst(0) depctr_vm_vsrc(0; & depctr_va_sdst(0)409// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis410// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a closing parenthesis411// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU412 413s_waitcnt_depctr depctr_vm_vsrc 0) depctr_vm_vsrc(0) depctr_va_sdst(0)414// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression415// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected absolute expression416// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU417 418s_waitcnt_depctr depctr_vm_vsrc(0) ,419// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name420// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name421// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU422 423s_waitcnt_depctr depctr_vm_vsrc(0) , &424// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name425// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name426// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU427 428s_waitcnt_depctr depctr_vm_vsrc(0) &429// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name430// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name431// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU432 433s_waitcnt_depctr depctr_vm_vsrc(0) & &434// GFX10: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name435// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: expected a counter name436// SICIVI: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU437 438//===----------------------------------------------------------------------===//439// s_branch.440//===----------------------------------------------------------------------===//441 442s_branch 0x80000000ffff443// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset444 445s_branch 0x10000446// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset447 448s_branch -32769449// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset450 451s_branch 1.0452// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset453 454s_branch s0455// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction456 457s_branch offset:1458// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand459