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 7 8//===----------------------------------------------------------------------===// 9// sendmsg 10//===----------------------------------------------------------------------===// 11 12s_sendmsg sendmsg(MSG_INTERRUPTX) 13// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression 14 15s_sendmsg sendmsg(1 -) 16// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression 17 18s_sendmsg sendmsg(MSG_INTERRUPT, 0) 19// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations 20 21s_sendmsg sendmsg(MSG_INTERRUPT, 0, 0) 22// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message does not support operations 23 24s_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 27 28s_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 31 32s_sendmsg sendmsg(MSG_GS, SYSMSG_OP_ECC_ERR_INTERRUPT) 33// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression 34 35s_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 38 39s_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 42 43s_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 46 47s_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 50 51s_sendmsg sendmsg(15, -1) 52// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id 53 54s_sendmsg sendmsg(15, 8) 55// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id 56 57s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0) 58// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis 59 60s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0) 61// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a message name or an absolute expression 62 63s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0) 64// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected an operation name or an absolute expression 65 66s_sendmsg sendmsg(MSG_GS, 1 -) 67// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression 68 69s_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 72 73s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 1 -) 74// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: unknown token in expression 75 76s_sendmsg sendmsg(2, 3, 0, 0) 77// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis 78 79s_sendmsg sendmsg(2, 2, -1) 80// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id 81 82s_sendmsg sendmsg(2, 2, 4) 83// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message stream id 84 85s_sendmsg sendmsg(2, 2, 0, 0) 86// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis 87 88s_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 91 92s_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 95 96s_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 100 101s_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 105 106s_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 109 110s_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 114 115s_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 119 120s_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 124 125s_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 129 130s_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 133 134s_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 139 140s_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 144 145s_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 149 150s_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 154 155s_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 159 160s_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 164 165s_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 169 170s_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 174 175s_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 179 180s_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 183 184s_sendmsg sendmsg(-1) 185// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id 186 187s_sendmsg sendmsg(16) 188// PREGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid message id 189 190s_sendmsg sendmsg(MSG_SYSMSG) 191// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: missing message operation 192 193s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0) 194// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: message operation does not support streams 195 196s_sendmsg sendmsg(MSG_SYSMSG, 0) 197// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id 198 199s_sendmsg sendmsg(MSG_SYSMSG, 5) 200// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operation id 201 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 GPU 204// GFX11PLUS: :[[@LINE-2]]:{{[0-9]+}}: error: specified operation id is not supported on this GPU 205 206//===----------------------------------------------------------------------===// 207// waitcnt 208//===----------------------------------------------------------------------===// 209 210s_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 213 214s_waitcnt lgkmcnt(64) 215// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for lgkmcnt 216 217s_waitcnt expcnt(8) 218// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for expcnt 219 220s_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 223 224s_waitcnt vmcnt(64) 225// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt 226 227s_waitcnt vmcnt(0xFFFFFFFFFFFF0000) 228// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: too large value for vmcnt 229 230s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0), 231// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name 232 233s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)& 234// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name 235 236s_waitcnt vmcnt(0) & expcnt(0) & x 237// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis 238 239s_waitcnt vmcnt(0) & expcnt(0) x 240// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a left parenthesis 241 242s_waitcnt vmcnt(0) & expcnt(0) & 1 243// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name 244 245s_waitcnt vmcnt(0) & expcnt(0) 1 246// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a counter name 247 248s_waitcnt vmcnt(0) & expcnt(0) x(0) 249// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid counter name x 250 251s_waitcnt vmcnt(x) 252// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression 253 254s_waitcnt x 255// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected absolute expression 256 257s_waitcnt vmcnt(0 258// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a closing parenthesis 259 260//===----------------------------------------------------------------------===// 261// s_waitcnt_depctr. 262//===----------------------------------------------------------------------===// 263 264s_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 268 269s_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 273 274s_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 277 278s_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 282 283s_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 287 288s_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 292 293s_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 297 298s_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 302 303s_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 307 308s_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 312 313s_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 317 318s_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 322 323s_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 327 328s_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 332 333s_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 337 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 GPU 342 343s_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 347 348s_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 352 353s_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 357 358s_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 362 363s_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 367 368s_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 372 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_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 377 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_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 382 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_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 387 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_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 392 393s_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 397 398s_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 402 403s_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 407 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 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 412 413s_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 417 418s_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 422 423s_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 427 428s_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 432 433s_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 437 438//===----------------------------------------------------------------------===// 439// s_branch. 440//===----------------------------------------------------------------------===// 441 442s_branch 0x80000000ffff 443// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset 444 445s_branch 0x10000 446// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset 447 448s_branch -32769 449// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset 450 451s_branch 1.0 452// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: expected a 16-bit signed jump offset 453 454s_branch s0 455// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction 456 457s_branch offset:1 458// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand 459