777 lines · plain
1// RUN: llvm-mc -triple=amdgcn -mcpu=gfx942 -show-encoding %s | FileCheck --check-prefix=GFX942 --strict-whitespace %s2// RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding %s | FileCheck --check-prefix=GFX942 --strict-whitespace %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx90a %s 2>&1 | FileCheck --check-prefixes=NOT-GFX942,GFX90A --implicit-check-not=error: %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefixes=NOT-GFX942,GFX10 --implicit-check-not=error: %s5 6// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction7// GFX942: global_load_dword v2, v[2:3], off sc0 ; encoding: [0x00,0x80,0x51,0xdc,0x02,0x00,0x7f,0x02]8global_load_dword v2, v[2:3], off sc09 10// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction11// GFX942: global_load_dword v2, v[2:3], off ; encoding: [0x00,0x80,0x50,0xdc,0x02,0x00,0x7f,0x02]12global_load_dword v2, v[2:3], off nosc013 14// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction15// GFX942: global_load_dword v2, v[2:3], off sc1 ; encoding: [0x00,0x80,0x50,0xde,0x02,0x00,0x7f,0x02]16global_load_dword v2, v[2:3], off sc117 18// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction19// GFX942: global_load_dword v2, v[2:3], off ; encoding: [0x00,0x80,0x50,0xdc,0x02,0x00,0x7f,0x02]20global_load_dword v2, v[2:3], off nosc121 22// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction23// GFX942: global_load_dword v2, v[2:3], off nt ; encoding: [0x00,0x80,0x52,0xdc,0x02,0x00,0x7f,0x02]24global_load_dword v2, v[2:3], off nt25 26// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction27// GFX942: global_load_dword v2, v[2:3], off ; encoding: [0x00,0x80,0x50,0xdc,0x02,0x00,0x7f,0x02]28global_load_dword v2, v[2:3], off nont29 30// GFX942: s_load_dword s2, s[2:3], 0x0 glc ; encoding: [0x81,0x00,0x03,0xc0,0x00,0x00,0x00,0x00]31s_load_dword s2, s[2:3], 0x0 glc32 33// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction34// GFX942: buffer_load_dword v5, off, s[8:11], s3 sc0 nt sc1 ; encoding: [0x00,0xc0,0x52,0xe0,0x00,0x05,0x02,0x03]35buffer_load_dword v5, off, s[8:11], s3 sc0 nt sc136 37// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU38// GFX942: flat_atomic_add_f32 v[2:3], v1 ; encoding: [0x00,0x00,0x34,0xdd,0x02,0x01,0x00,0x00]39flat_atomic_add_f32 v[2:3], v140 41// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU42// GFX942: flat_atomic_add_f32 v[2:3], a1 ; encoding: [0x00,0x00,0x34,0xdd,0x02,0x01,0x80,0x00]43flat_atomic_add_f32 v[2:3], a144 45// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU46// GFX942: flat_atomic_add_f32 v4, v[2:3], v1 sc0 ; encoding: [0x00,0x00,0x35,0xdd,0x02,0x01,0x00,0x04]47flat_atomic_add_f32 v4, v[2:3], v1 sc048 49// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU50// GFX942: flat_atomic_add_f32 a4, v[2:3], a1 sc0 ; encoding: [0x00,0x00,0x35,0xdd,0x02,0x01,0x80,0x04]51flat_atomic_add_f32 a4, v[2:3], a1 sc052 53// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU54// GFX942: flat_atomic_pk_add_f16 v4, v[2:3], v1 sc0 ; encoding: [0x00,0x00,0x39,0xdd,0x02,0x01,0x00,0x04]55flat_atomic_pk_add_f16 v4, v[2:3], v1 sc056 57// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU58// GFX942: flat_atomic_pk_add_f16 a4, v[2:3], a1 sc0 ; encoding: [0x00,0x00,0x39,0xdd,0x02,0x01,0x80,0x04]59flat_atomic_pk_add_f16 a4, v[2:3], a1 sc060 61// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU62// GFX942: flat_atomic_pk_add_f16 v[2:3], v1 ; encoding: [0x00,0x00,0x38,0xdd,0x02,0x01,0x00,0x00]63flat_atomic_pk_add_f16 v[2:3], v164 65// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU66// GFX942: flat_atomic_pk_add_f16 v[2:3], a1 ; encoding: [0x00,0x00,0x38,0xdd,0x02,0x01,0x80,0x00]67flat_atomic_pk_add_f16 v[2:3], a168 69// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU70// GFX942: flat_atomic_pk_add_bf16 v4, v[2:3], v1 sc0 ; encoding: [0x00,0x00,0x49,0xdd,0x02,0x01,0x00,0x04]71flat_atomic_pk_add_bf16 v4, v[2:3], v1 sc072 73// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU74// GFX942: flat_atomic_pk_add_bf16 a4, v[2:3], a1 sc0 ; encoding: [0x00,0x00,0x49,0xdd,0x02,0x01,0x80,0x04]75flat_atomic_pk_add_bf16 a4, v[2:3], a1 sc076 77// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU78// GFX942: flat_atomic_pk_add_bf16 v[2:3], v1 ; encoding: [0x00,0x00,0x48,0xdd,0x02,0x01,0x00,0x00]79flat_atomic_pk_add_bf16 v[2:3], v180 81// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU82// GFX942: flat_atomic_pk_add_bf16 v[2:3], a1 ; encoding: [0x00,0x00,0x48,0xdd,0x02,0x01,0x80,0x00]83flat_atomic_pk_add_bf16 v[2:3], a184 85// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU86// GFX942: global_atomic_pk_add_bf16 v4, v[2:3], v1, off sc0 ; encoding: [0x00,0x80,0x49,0xdd,0x02,0x01,0x7f,0x04]87global_atomic_pk_add_bf16 v4, v[2:3], v1, off sc088 89// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU90// GFX942: global_atomic_pk_add_bf16 a4, v[2:3], a1, off sc0 ; encoding: [0x00,0x80,0x49,0xdd,0x02,0x01,0xff,0x04]91global_atomic_pk_add_bf16 a4, v[2:3], a1, off sc092 93// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU94// GFX942: global_atomic_pk_add_bf16 v[2:3], v1, off ; encoding: [0x00,0x80,0x48,0xdd,0x02,0x01,0x7f,0x00]95global_atomic_pk_add_bf16 v[2:3], v1, off96 97// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU98// GFX942: global_atomic_pk_add_bf16 v[2:3], a1, off ; encoding: [0x00,0x80,0x48,0xdd,0x02,0x01,0xff,0x00]99global_atomic_pk_add_bf16 v[2:3], a1, off100 101// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU102// GFX942: ds_pk_add_f16 v2, v1 ; encoding: [0x00,0x00,0x2e,0xd8,0x02,0x01,0x00,0x00]103ds_pk_add_f16 v2, v1104 105// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU106// GFX942: ds_pk_add_f16 v2, a1 ; encoding: [0x00,0x00,0x2e,0xda,0x02,0x01,0x00,0x00]107ds_pk_add_f16 v2, a1108 109// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU110// GFX942: ds_pk_add_rtn_f16 v3, v2, v1 ; encoding: [0x00,0x00,0x6e,0xd9,0x02,0x01,0x00,0x03]111ds_pk_add_rtn_f16 v3, v2, v1112 113// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU114// GFX942: ds_pk_add_rtn_f16 a3, v2, a1 ; encoding: [0x00,0x00,0x6e,0xdb,0x02,0x01,0x00,0x03]115ds_pk_add_rtn_f16 a3, v2, a1116 117// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU118// GFX942: ds_pk_add_bf16 v2, v1 ; encoding: [0x00,0x00,0x30,0xd8,0x02,0x01,0x00,0x00]119ds_pk_add_bf16 v2, v1120 121// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU122// GFX942: ds_pk_add_bf16 v2, a1 ; encoding: [0x00,0x00,0x30,0xda,0x02,0x01,0x00,0x00]123ds_pk_add_bf16 v2, a1124 125// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU126// GFX942: ds_pk_add_rtn_bf16 v3, v2, v1 ; encoding: [0x00,0x00,0x70,0xd9,0x02,0x01,0x00,0x03]127ds_pk_add_rtn_bf16 v3, v2, v1128 129// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU130// GFX942: ds_pk_add_rtn_bf16 a3, v2, a1 ; encoding: [0x00,0x00,0x70,0xdb,0x02,0x01,0x00,0x03]131ds_pk_add_rtn_bf16 a3, v2, a1132 133// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU134// GFX942: global_load_lds_dword v[2:3], off ; encoding: [0x00,0x80,0xa8,0xdc,0x02,0x00,0x7f,0x00]135global_load_lds_dword v[2:3], off136 137// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:138// GFX942: global_load_lds_dword v[2:3], off sc0 nt sc1 ; encoding: [0x00,0x80,0xab,0xde,0x02,0x00,0x7f,0x00]139global_load_lds_dword v[2:3], off sc0 nt sc1140 141// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:142// GFX942: global_load_lds_dword v[2:3], off offset:4 ; encoding: [0x04,0x80,0xa8,0xdc,0x02,0x00,0x7f,0x00]143global_load_lds_dword v[2:3], off offset:4144 145// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:146// GFX942: global_load_lds_dword v2, s[4:5] offset:4 ; encoding: [0x04,0x80,0xa8,0xdc,0x02,0x00,0x04,0x00]147global_load_lds_dword v2, s[4:5] offset:4148 149// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU150// GFX942: global_load_lds_ubyte v[2:3], off ; encoding: [0x00,0x80,0x98,0xdc,0x02,0x00,0x7f,0x00]151global_load_lds_ubyte v[2:3], off152 153// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU154// GFX942: global_load_lds_sbyte v[2:3], off ; encoding: [0x00,0x80,0x9c,0xdc,0x02,0x00,0x7f,0x00]155global_load_lds_sbyte v[2:3], off156 157// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU158// GFX942: global_load_lds_sshort v[2:3], off ; encoding: [0x00,0x80,0xa4,0xdc,0x02,0x00,0x7f,0x00]159global_load_lds_sshort v[2:3], off160 161// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU162// GFX942: global_load_lds_ushort v[2:3], off ; encoding: [0x00,0x80,0xa0,0xdc,0x02,0x00,0x7f,0x00]163global_load_lds_ushort v[2:3], off164 165// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU166// GFX942: scratch_load_lds_dword v2, off ; encoding: [0x00,0x60,0xa8,0xdc,0x02,0x00,0x7f,0x00]167scratch_load_lds_dword v2, off168 169// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU170// GFX942: scratch_load_lds_dword v2, s4 ; encoding: [0x00,0x60,0xa8,0xdc,0x02,0x00,0x04,0x00]171scratch_load_lds_dword v2, s4172 173// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:174// GFX942: scratch_load_lds_dword v2, s4 offset:4 ; encoding: [0x04,0x60,0xa8,0xdc,0x02,0x00,0x04,0x00]175scratch_load_lds_dword v2, s4 offset:4176 177// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:178// GFX942: scratch_load_lds_dword off, s4 offset:4 ; encoding: [0x04,0x40,0xa8,0xdc,0x00,0x00,0x04,0x00]179scratch_load_lds_dword off, s4 offset:4180 181// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error:182// GFX942: scratch_load_lds_dword off, off offset:4 ; encoding: [0x04,0x40,0xa8,0xdc,0x00,0x00,0x7f,0x00]183scratch_load_lds_dword off, off offset:4184 185// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU186// GFX942: scratch_load_lds_ubyte v2, off ; encoding: [0x00,0x60,0x98,0xdc,0x02,0x00,0x7f,0x00]187scratch_load_lds_ubyte v2, off188 189// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU190// GFX942: scratch_load_lds_sbyte v2, off ; encoding: [0x00,0x60,0x9c,0xdc,0x02,0x00,0x7f,0x00]191scratch_load_lds_sbyte v2, off192 193// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU194// GFX942: scratch_load_lds_ushort v2, off ; encoding: [0x00,0x60,0xa0,0xdc,0x02,0x00,0x7f,0x00]195scratch_load_lds_ushort v2, off196 197// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU198// GFX942: scratch_load_lds_sshort v2, off ; encoding: [0x00,0x60,0xa4,0xdc,0x02,0x00,0x7f,0x00]199scratch_load_lds_sshort v2, off200 201// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU202// GFX942: s_getreg_b32 s1, hwreg(HW_REG_XCC_ID) ; encoding: [0x14,0xf8,0x81,0xb8]203s_getreg_b32 s1, hwreg(HW_REG_XCC_ID)204 205// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU206// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA) ; encoding: [0x15,0xf8,0x81,0xb8]207s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA)208 209// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU210// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA1) ; encoding: [0x16,0xf8,0x81,0xb8]211s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA1)212 213// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU214// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_LO) ; encoding: [0x17,0xf8,0x81,0xb8]215s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_LO)216 217// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU218// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_HI) ; encoding: [0x18,0xf8,0x81,0xb8]219s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_HI)220 221// GFX942: s_getreg_b32 s1, hwreg(HW_REG_TMA_HI) ; encoding: [0x13,0xf8,0x81,0xb8]222s_getreg_b32 s1, hwreg(19)223 224// GFX942: s_getreg_b32 s1, hwreg(HW_REG_XCC_ID) ; encoding: [0x14,0xf8,0x81,0xb8]225s_getreg_b32 s1, hwreg(20)226 227// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA) ; encoding: [0x15,0xf8,0x81,0xb8]228s_getreg_b32 s1, hwreg(21)229 230// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA1) ; encoding: [0x16,0xf8,0x81,0xb8]231s_getreg_b32 s1, hwreg(22)232 233// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_LO) ; encoding: [0x17,0xf8,0x81,0xb8]234s_getreg_b32 s1, hwreg(23)235 236// GFX942: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_PC_HI) ; encoding: [0x18,0xf8,0x81,0xb8]237s_getreg_b32 s1, hwreg(24)238 239// GFX942: s_getreg_b32 s1, hwreg(25) ; encoding: [0x19,0xf8,0x81,0xb8]240s_getreg_b32 s1, hwreg(25)241 242// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU243// GFX942: v_mov_b64_e32 v[2:3], v[4:5] ; encoding: [0x04,0x71,0x04,0x7e]244v_mov_b64 v[2:3], v[4:5]245 246// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU247// GFX942: v_mov_b64_dpp v[2:3], v[4:5] row_newbcast:1 row_mask:0xf bank_mask:0xf ; encoding: [0xfa,0x70,0x04,0x7e,0x04,0x51,0x01,0xff]248v_mov_b64 v[2:3], v[4:5] row_newbcast:1249 250// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU251// GFX942: v_mov_b64_e32 v[2:3], s[4:5] ; encoding: [0x04,0x70,0x04,0x7e]252v_mov_b64 v[2:3], s[4:5]253 254// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU255// GFX942: v_mov_b64_e32 v[2:3], 1 ; encoding: [0x81,0x70,0x04,0x7e]256v_mov_b64 v[2:3], 1257 258// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU259// GFX942: v_mov_b64_e32 v[2:3], 0x64 ; encoding: [0xff,0x70,0x04,0x7e,0x64,0x00,0x00,0x00]260v_mov_b64 v[2:3], 0x64261 262// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU263// GFX942: v_lshl_add_u64 v[2:3], s[4:5], v7, v[8:9] ; encoding: [0x02,0x00,0x08,0xd2,0x04,0x0e,0x22,0x04]264v_lshl_add_u64 v[2:3], s[4:5], v7, v[8:9]265 266// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU267// GFX942: v_lshl_add_u64 v[2:3], v[4:5], 0, 1 ; encoding: [0x02,0x00,0x08,0xd2,0x04,0x01,0x05,0x02]268v_lshl_add_u64 v[2:3], v[4:5], 0, 1269 270// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU271// GFX942: v_lshl_add_u64 v[2:3], v[4:5], 3, s[2:3] ; encoding: [0x02,0x00,0x08,0xd2,0x04,0x07,0x09,0x00]272v_lshl_add_u64 v[2:3], v[4:5], 3, s[2:3]273 274// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU275// GFX942: v_lshl_add_u64 v[2:3], s[4:5], 4, v[2:3] ; encoding: [0x02,0x00,0x08,0xd2,0x04,0x08,0x09,0x04]276v_lshl_add_u64 v[2:3], s[4:5], 4, v[2:3]277 278// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction279// GFX10: error: instruction not supported on this GPU280// GFX942: buffer_wbl2 sc1 ; encoding: [0x00,0x80,0xa0,0xe0,0x00,0x00,0x00,0x00]281buffer_wbl2 sc1282 283// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction284// GFX10: error: instruction not supported on this GPU285// GFX942: buffer_wbl2 sc0 ; encoding: [0x00,0x40,0xa0,0xe0,0x00,0x00,0x00,0x00]286buffer_wbl2 sc0287 288// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction289// GFX10: error: instruction not supported on this GPU290// GFX942: buffer_wbl2 sc0 sc1 ; encoding: [0x00,0xc0,0xa0,0xe0,0x00,0x00,0x00,0x00]291buffer_wbl2 sc0 sc1292 293// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU294// GFX942: buffer_inv sc0 ; encoding: [0x00,0x40,0xa4,0xe0,0x00,0x00,0x00,0x00]295buffer_inv sc0296 297// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU298// GFX942: buffer_inv sc1 ; encoding: [0x00,0x80,0xa4,0xe0,0x00,0x00,0x00,0x00]299buffer_inv sc1300 301// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU302// GFX942: buffer_inv sc0 sc1 ; encoding: [0x00,0xc0,0xa4,0xe0,0x00,0x00,0x00,0x00]303buffer_inv sc0 sc1304 305// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction306// GFX942: buffer_atomic_swap v5, off, s[8:11], s3 sc0 ; encoding: [0x00,0x40,0x00,0xe1,0x00,0x05,0x02,0x03]307buffer_atomic_swap v5, off, s[8:11], s3 sc0308 309// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction310// GFX942: buffer_atomic_swap v5, off, s[8:11], s3 nt ; encoding: [0x00,0x00,0x02,0xe1,0x00,0x05,0x02,0x03]311buffer_atomic_swap v5, off, s[8:11], s3 nt312 313// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU314// GFX942: v_fmac_f64_e32 v[4:5], v[2:3], v[4:5] ; encoding: [0x02,0x09,0x08,0x08]315v_fmac_f64_e32 v[4:5], v[2:3], v[4:5]316 317// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU318// GFX942: v_fmac_f64_e32 v[254:255], v[2:3], v[4:5] ; encoding: [0x02,0x09,0xfc,0x09]319v_fmac_f64_e32 v[254:255], v[2:3], v[4:5]320 321// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU322// GFX942: v_fmac_f64_e32 v[4:5], v[254:255], v[4:5] ; encoding: [0xfe,0x09,0x08,0x08]323v_fmac_f64_e32 v[4:5], v[254:255], v[4:5]324 325// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU326// GFX942: v_fmac_f64_e32 v[4:5], flat_scratch, v[4:5] ; encoding: [0x66,0x08,0x08,0x08]327v_fmac_f64_e32 v[4:5], flat_scratch, v[4:5]328 329// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU330// GFX942: v_fmac_f64_e32 v[4:5], vcc, v[4:5] ; encoding: [0x6a,0x08,0x08,0x08]331v_fmac_f64_e32 v[4:5], vcc, v[4:5]332 333// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU334// GFX942: v_fmac_f64_e32 v[4:5], exec, v[4:5] ; encoding: [0x7e,0x08,0x08,0x08]335v_fmac_f64_e32 v[4:5], exec, v[4:5]336 337// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU338// GFX942: v_fmac_f64_e32 v[4:5], 0, v[4:5] ; encoding: [0x80,0x08,0x08,0x08]339v_fmac_f64_e32 v[4:5], 0, v[4:5]340 341// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU342// GFX942: v_fmac_f64_e32 v[4:5], -1, v[4:5] ; encoding: [0xc1,0x08,0x08,0x08]343v_fmac_f64_e32 v[4:5], -1, v[4:5]344 345// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU346// GFX942: v_fmac_f64_e32 v[4:5], 0.5, v[4:5] ; encoding: [0xf0,0x08,0x08,0x08]347v_fmac_f64_e32 v[4:5], 0.5, v[4:5]348 349// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU350// GFX942: v_fmac_f64_e32 v[4:5], -4.0, v[4:5] ; encoding: [0xf7,0x08,0x08,0x08]351v_fmac_f64_e32 v[4:5], -4.0, v[4:5]352 353// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU354// GFX942: v_fmac_f64_e32 v[4:5], 0xaf123456, v[4:5] ; encoding: [0xff,0x08,0x08,0x08,0x56,0x34,0x12,0xaf]355v_fmac_f64_e32 v[4:5], 0xaf123456, v[4:5]356 357// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU358// GFX942: v_fmac_f64_e32 v[4:5], 0x3f717273, v[4:5] ; encoding: [0xff,0x08,0x08,0x08,0x73,0x72,0x71,0x3f]359v_fmac_f64_e32 v[4:5], 0x3f717273, v[4:5]360 361// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU362// GFX942: v_fmac_f64_e32 v[4:5], v[2:3], v[254:255] ; encoding: [0x02,0xfd,0x09,0x08]363v_fmac_f64_e32 v[4:5], v[2:3], v[254:255]364 365// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU366// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x00]367v_fmac_f64_e64 v[4:5], v[2:3], v[8:9]368 369// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU370// GFX942: v_fmac_f64_e64 v[254:255], v[2:3], v[8:9] ; encoding: [0xfe,0x00,0x04,0xd1,0x02,0x11,0x02,0x00]371v_fmac_f64_e64 v[254:255], v[2:3], v[8:9]372 373// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU374// GFX942: v_fmac_f64_e64 v[4:5], v[254:255], v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0xfe,0x11,0x02,0x00]375v_fmac_f64_e64 v[4:5], v[254:255], v[8:9]376 377// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU378// GFX942: v_fmac_f64_e64 v[4:5], flat_scratch, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x66,0x10,0x02,0x00]379v_fmac_f64_e64 v[4:5], flat_scratch, v[8:9]380 381// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU382// GFX942: v_fmac_f64_e64 v[4:5], vcc, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x6a,0x10,0x02,0x00]383v_fmac_f64_e64 v[4:5], vcc, v[8:9]384 385// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU386// GFX942: v_fmac_f64_e64 v[4:5], exec, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x7e,0x10,0x02,0x00]387v_fmac_f64_e64 v[4:5], exec, v[8:9]388 389// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU390// GFX942: v_fmac_f64_e64 v[4:5], 0, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x80,0x10,0x02,0x00]391v_fmac_f64_e64 v[4:5], 0, v[8:9]392 393// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU394// GFX942: v_fmac_f64_e64 v[4:5], -1, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0xc1,0x10,0x02,0x00]395v_fmac_f64_e64 v[4:5], -1, v[8:9]396 397// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU398// GFX942: v_fmac_f64_e64 v[4:5], 0.5, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0xf0,0x10,0x02,0x00]399v_fmac_f64_e64 v[4:5], 0.5, v[8:9]400 401// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU402// GFX942: v_fmac_f64_e64 v[4:5], -4.0, v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0xf7,0x10,0x02,0x00]403v_fmac_f64_e64 v[4:5], -4.0, v[8:9]404 405// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU406// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[254:255] ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xfd,0x03,0x00]407v_fmac_f64_e64 v[4:5], v[2:3], v[254:255]408 409// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU410// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], flat_scratch ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xcd,0x00,0x00]411v_fmac_f64_e64 v[4:5], v[2:3], flat_scratch412 413// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU414// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], vcc ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xd5,0x00,0x00]415v_fmac_f64_e64 v[4:5], v[2:3], vcc416 417// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU418// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], exec ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xfd,0x00,0x00]419v_fmac_f64_e64 v[4:5], v[2:3], exec420 421// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU422// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], 0 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x01,0x01,0x00]423v_fmac_f64_e64 v[4:5], v[2:3], 0424 425// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU426// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], -1 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x83,0x01,0x00]427v_fmac_f64_e64 v[4:5], v[2:3], -1428 429// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU430// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], 0.5 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xe1,0x01,0x00]431v_fmac_f64_e64 v[4:5], v[2:3], 0.5432 433// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU434// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], -4.0 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0xef,0x01,0x00]435v_fmac_f64_e64 v[4:5], v[2:3], -4.0436 437// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU438// GFX942: v_fmac_f64_e64 v[4:5], -v[2:3], v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x20]439v_fmac_f64_e64 v[4:5], -v[2:3], v[8:9]440 441// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU442// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], -v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x40]443v_fmac_f64_e64 v[4:5], v[2:3], -v[8:9]444 445// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU446// GFX942: v_fmac_f64_e64 v[4:5], -v[2:3], -v[8:9] ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x60]447v_fmac_f64_e64 v[4:5], -v[2:3], -v[8:9]448 449// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU450// GFX942: v_fmac_f64_e64 v[4:5], |v[2:3]|, v[8:9] ; encoding: [0x04,0x01,0x04,0xd1,0x02,0x11,0x02,0x00]451v_fmac_f64_e64 v[4:5], |v[2:3]|, v[8:9]452 453// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU454// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], |v[8:9]| ; encoding: [0x04,0x02,0x04,0xd1,0x02,0x11,0x02,0x00]455v_fmac_f64_e64 v[4:5], v[2:3], |v[8:9]|456 457// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU458// GFX942: v_fmac_f64_e64 v[4:5], |v[2:3]|, |v[8:9]| ; encoding: [0x04,0x03,0x04,0xd1,0x02,0x11,0x02,0x00]459v_fmac_f64_e64 v[4:5], |v[2:3]|, |v[8:9]|460 461// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU462// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] clamp ; encoding: [0x04,0x80,0x04,0xd1,0x02,0x11,0x02,0x00]463v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] clamp464 465// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU466// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:2 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x08]467v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:2468 469// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU470// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:4 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x10]471v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:4472 473// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU474// GFX942: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] div:2 ; encoding: [0x04,0x00,0x04,0xd1,0x02,0x11,0x02,0x18]475v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] div:2476 477// GFX90A: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU478// GFX942: v_fmamk_f32 v0, v2, 0x42c80000, v3 ; encoding: [0x02,0x07,0x00,0x2e,0x00,0x00,0xc8,0x42]479v_fmamk_f32 v0, v2, 100.0, v3480 481// GFX90A: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU482// GFX942: v_fmaak_f32 v0, v2, v3, 0x42c80000 ; encoding: [0x02,0x07,0x00,0x30,0x00,0x00,0xc8,0x42]483v_fmaak_f32 v0, v2, v3, 100.0484 485// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction486// GFX10: error: instruction not supported on this GPU487// GFX942: global_atomic_add_f32 v0, v[0:1], v2, off sc0 sc1 ; encoding: [0x00,0x80,0x35,0xdf,0x00,0x02,0x7f,0x00]488global_atomic_add_f32 v0, v[0:1], v2, off sc0 sc1489 490// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction491// GFX10: error: instruction not supported on this GPU492// GFX942: global_atomic_add_f32 v[0:1], v2, off sc1 ; encoding: [0x00,0x80,0x34,0xdf,0x00,0x02,0x7f,0x00]493global_atomic_add_f32 v[0:1], v2, off sc1494 495// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction496// GFX10: error: instruction not supported on this GPU497// GFX942: global_atomic_add_f32 v0, v2, s[0:1] sc1 ; encoding: [0x00,0x80,0x34,0xdf,0x00,0x02,0x00,0x00]498global_atomic_add_f32 v0, v2, s[0:1] sc1499 500// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction501// GFX10: error: instruction not supported on this GPU502// GFX942: global_atomic_add_f32 v1, v0, v2, s[0:1] sc0 sc1 ; encoding: [0x00,0x80,0x35,0xdf,0x00,0x02,0x00,0x01]503global_atomic_add_f32 v1, v0, v2, s[0:1] sc0 sc1504 505// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction506// GFX10: error: instruction not supported on this GPU507// GFX942: global_atomic_pk_add_f16 v0, v[0:1], v2, off sc0 sc1 ; encoding: [0x00,0x80,0x39,0xdf,0x00,0x02,0x7f,0x00]508global_atomic_pk_add_f16 v0, v[0:1], v2, off sc0 sc1509 510// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction511// GFX10: error: instruction not supported on this GPU512// GFX942: flat_atomic_add_f64 v[0:1], v[0:1], v[2:3] sc0 sc1 ; encoding: [0x00,0x00,0x3d,0xdf,0x00,0x02,0x00,0x00]513flat_atomic_add_f64 v[0:1], v[0:1], v[2:3] sc0 sc1514 515// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction516// GFX10: error: instruction not supported on this GPU517// GFX942: flat_atomic_add_f64 v[0:1], v[2:3] sc1 ; encoding: [0x00,0x00,0x3c,0xdf,0x00,0x02,0x00,0x00]518flat_atomic_add_f64 v[0:1], v[2:3] sc1519 520// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction521// GFX10: error: instruction not supported on this GPU522// GFX942: flat_atomic_min_f64 v[0:1], v[2:3] sc1 ; encoding: [0x00,0x00,0x40,0xdf,0x00,0x02,0x00,0x00]523flat_atomic_min_f64 v[0:1], v[2:3] sc1524 525// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction526// GFX10: error: instruction not supported on this GPU527// GFX942: flat_atomic_max_f64 v[0:1], v[2:3] sc1 ; encoding: [0x00,0x00,0x44,0xdf,0x00,0x02,0x00,0x00]528flat_atomic_max_f64 v[0:1], v[2:3] sc1529 530// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction531// GFX10: error: instruction not supported on this GPU532// GFX942: global_atomic_add_f64 v[0:1], v[2:3], off sc1 ; encoding: [0x00,0x80,0x3c,0xdf,0x00,0x02,0x7f,0x00]533global_atomic_add_f64 v[0:1], v[2:3], off sc1534 535// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction536// GFX10: error: instruction not supported on this GPU537// GFX942: global_atomic_min_f64 v[0:1], v[2:3], off sc1 ; encoding: [0x00,0x80,0x40,0xdf,0x00,0x02,0x7f,0x00]538global_atomic_min_f64 v[0:1], v[2:3], off sc1539 540// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction541// GFX10: error: instruction not supported on this GPU542// GFX942: global_atomic_max_f64 v[0:1], v[2:3], off sc1 ; encoding: [0x00,0x80,0x44,0xdf,0x00,0x02,0x7f,0x00]543global_atomic_max_f64 v[0:1], v[2:3], off sc1544 545// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction546// GFX10: error: instruction not supported on this GPU547// GFX942: buffer_atomic_add_f32 v4, off, s[8:11], s3 sc1 ; encoding: [0x00,0x80,0x34,0xe1,0x00,0x04,0x02,0x03]548buffer_atomic_add_f32 v4, off, s[8:11], s3 sc1549 550// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction551// GFX10: error: instruction not supported on this GPU552// GFX942: buffer_atomic_pk_add_f16 v4, off, s[8:11], s3 sc1 ; encoding: [0x00,0x80,0x38,0xe1,0x00,0x04,0x02,0x03]553buffer_atomic_pk_add_f16 v4, off, s[8:11], s3 sc1554 555// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction556// GFX10: error: instruction not supported on this GPU557// GFX942: buffer_atomic_add_f64 v[4:5], off, s[8:11], s3 sc1 ; encoding: [0x00,0x80,0x3c,0xe1,0x00,0x04,0x02,0x03]558buffer_atomic_add_f64 v[4:5], off, s[8:11], s3 sc1559 560// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction561// GFX10: error: instruction not supported on this GPU562// GFX942: buffer_atomic_max_f64 v[4:5], off, s[8:11], s3 sc1 ; encoding: [0x00,0x80,0x44,0xe1,0x00,0x04,0x02,0x03]563buffer_atomic_max_f64 v[4:5], off, s[8:11], s3 sc1564 565// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction566// GFX10: error: instruction not supported on this GPU567// GFX942: buffer_atomic_min_f64 v[4:5], off, s[8:11], s3 sc1 ; encoding: [0x00,0x80,0x40,0xe1,0x00,0x04,0x02,0x03]568buffer_atomic_min_f64 v[4:5], off, s[8:11], s3 sc1569 570// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU571// GFX942: v_cvt_f32_bf8_e32 v1, s3 ; encoding: [0x03,0xaa,0x02,0x7e]572v_cvt_f32_bf8 v1, s3573 574// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU575// GFX942: v_cvt_f32_bf8_e32 v1, 3 ; encoding: [0x83,0xaa,0x02,0x7e]576v_cvt_f32_bf8 v1, 3577 578// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU579// GFX942: v_cvt_f32_bf8_e32 v1, v3 ; encoding: [0x03,0xab,0x02,0x7e]580v_cvt_f32_bf8 v1, v3581 582// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU583// GFX942: v_cvt_f32_bf8_sdwa v1, s3 src0_sel:BYTE_1 ; encoding: [0xf9,0xaa,0x02,0x7e,0x03,0x06,0x81,0x00]584v_cvt_f32_bf8 v1, s3 src0_sel:BYTE_1585 586// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU587// GFX942: v_cvt_f32_bf8_dpp v1, v3 quad_perm:[0,2,1,1] row_mask:0xf bank_mask:0xf ; encoding: [0xfa,0xaa,0x02,0x7e,0x03,0x58,0x00,0xff]588v_cvt_f32_bf8 v1, v3 quad_perm:[0,2,1,1] row_mask:0xf bank_mask:0xf589 590// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU591// GFX942: v_cvt_f32_bf8_e64 v1, s3 mul:2 ; encoding: [0x01,0x00,0x95,0xd1,0x03,0x00,0x00,0x08]592v_cvt_f32_bf8 v1, s3 mul:2593 594// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU595// GFX942: v_cvt_f32_bf8_sdwa v1, s3 clamp mul:2 src0_sel:BYTE_1 ; encoding: [0xf9,0xaa,0x02,0x7e,0x03,0x66,0x81,0x00]596v_cvt_f32_bf8 v1, s3 clamp mul:2 src0_sel:BYTE_1597 598// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU599// GFX942: v_cvt_f32_bf8_e64 v1, s3 clamp ; encoding: [0x01,0x80,0x95,0xd1,0x03,0x00,0x00,0x00]600v_cvt_f32_bf8 v1, s3 clamp601 602// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU603// GFX942: v_cvt_f32_fp8_e32 v1, s3 ; encoding: [0x03,0xa8,0x02,0x7e]604v_cvt_f32_fp8 v1, s3605 606// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU607// GFX942: v_cvt_f32_fp8_e32 v1, 3 ; encoding: [0x83,0xa8,0x02,0x7e]608v_cvt_f32_fp8 v1, 3609 610// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU611// GFX942: v_cvt_f32_fp8_e32 v1, v3 ; encoding: [0x03,0xa9,0x02,0x7e]612v_cvt_f32_fp8 v1, v3613 614// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU615// GFX942: v_cvt_f32_fp8_sdwa v1, s3 src0_sel:BYTE_1 ; encoding: [0xf9,0xa8,0x02,0x7e,0x03,0x06,0x81,0x00]616v_cvt_f32_fp8 v1, s3 src0_sel:BYTE_1617 618// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU619// GFX942: v_cvt_f32_fp8_dpp v1, v3 quad_perm:[0,2,1,1] row_mask:0xf bank_mask:0xf ; encoding: [0xfa,0xa8,0x02,0x7e,0x03,0x58,0x00,0xff]620v_cvt_f32_fp8 v1, v3 quad_perm:[0,2,1,1] row_mask:0xf bank_mask:0xf621 622// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU623// GFX942: v_cvt_f32_fp8_e64 v1, s3 mul:2 ; encoding: [0x01,0x00,0x94,0xd1,0x03,0x00,0x00,0x08]624v_cvt_f32_fp8 v1, s3 mul:2625 626// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU627// GFX942: v_cvt_f32_fp8_sdwa v1, s3 clamp mul:2 src0_sel:BYTE_1 ; encoding: [0xf9,0xa8,0x02,0x7e,0x03,0x66,0x81,0x00]628v_cvt_f32_fp8 v1, s3 clamp mul:2 src0_sel:BYTE_1629 630// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU631// GFX942: v_cvt_f32_fp8_e64 v1, s3 clamp ; encoding: [0x01,0x80,0x94,0xd1,0x03,0x00,0x00,0x00]632v_cvt_f32_fp8 v1, s3 clamp633 634// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU635// GFX942: v_cvt_f32_fp8_sdwa v1, 3 src0_sel:BYTE_1 ; encoding: [0xf9,0xa8,0x02,0x7e,0x83,0x06,0x81,0x00]636v_cvt_f32_fp8 v1, 3 src0_sel:BYTE_1637 638// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU639// GFX942: v_cvt_pk_f32_bf8_e32 v[2:3], s3 ; encoding: [0x03,0xae,0x04,0x7e]640v_cvt_pk_f32_bf8 v[2:3], s3641 642// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU643// GFX942: v_cvt_pk_f32_bf8_e32 v[2:3], 3 ; encoding: [0x83,0xae,0x04,0x7e]644v_cvt_pk_f32_bf8 v[2:3], 3645 646// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU647// GFX942: v_cvt_pk_f32_bf8_e32 v[2:3], v3 ; encoding: [0x03,0xaf,0x04,0x7e]648v_cvt_pk_f32_bf8 v[2:3], v3649 650// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU651// GFX942: v_cvt_pk_f32_bf8_sdwa v[2:3], s3 src0_sel:WORD_1 ; encoding: [0xf9,0xae,0x04,0x7e,0x03,0x06,0x85,0x00]652v_cvt_pk_f32_bf8 v[2:3], s3 src0_sel:WORD_1653 654// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU655// GFX942: v_cvt_pk_f32_bf8_dpp v[0:1], v3 row_newbcast:3 row_mask:0xf bank_mask:0xf ; encoding: [0xfa,0xae,0x00,0x7e,0x03,0x53,0x01,0xff]656v_cvt_pk_f32_bf8 v[0:1], v3 row_newbcast:3657 658// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU659// GFX942: v_cvt_pk_f32_bf8_e64 v[2:3], s3 mul:2 ; encoding: [0x02,0x00,0x97,0xd1,0x03,0x00,0x00,0x08]660v_cvt_pk_f32_bf8 v[2:3], s3 mul:2661 662// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU663// GFX942: v_cvt_pk_f32_bf8_sdwa v[2:3], s3 clamp mul:2 src0_sel:WORD_1 ; encoding: [0xf9,0xae,0x04,0x7e,0x03,0x66,0x85,0x00]664v_cvt_pk_f32_bf8 v[2:3], s3 clamp mul:2 src0_sel:WORD_1665 666// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU667// GFX942: v_cvt_pk_f32_bf8_e64 v[2:3], s3 clamp ; encoding: [0x02,0x80,0x97,0xd1,0x03,0x00,0x00,0x00]668v_cvt_pk_f32_bf8 v[2:3], s3 clamp669 670// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU671// GFX942: v_cvt_pk_f32_fp8_e32 v[2:3], s3 ; encoding: [0x03,0xac,0x04,0x7e]672v_cvt_pk_f32_fp8 v[2:3], s3673 674// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU675// GFX942: v_cvt_pk_f32_fp8_e32 v[2:3], 3 ; encoding: [0x83,0xac,0x04,0x7e]676v_cvt_pk_f32_fp8 v[2:3], 3677 678// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU679// GFX942: v_cvt_pk_f32_fp8_e32 v[2:3], v3 ; encoding: [0x03,0xad,0x04,0x7e]680v_cvt_pk_f32_fp8 v[2:3], v3681 682// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU683// GFX942: v_cvt_pk_f32_fp8_sdwa v[2:3], s3 src0_sel:WORD_1 ; encoding: [0xf9,0xac,0x04,0x7e,0x03,0x06,0x85,0x00]684v_cvt_pk_f32_fp8 v[2:3], s3 src0_sel:WORD_1685 686// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU687// GFX942: v_cvt_pk_f32_fp8_sdwa v[2:3], 3 src0_sel:WORD_1 ; encoding: [0xf9,0xac,0x04,0x7e,0x83,0x06,0x85,0x00]688v_cvt_pk_f32_fp8 v[2:3], 3 src0_sel:WORD_1689 690// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU691// GFX942: v_cvt_pk_f32_fp8_dpp v[0:1], v3 row_newbcast:3 row_mask:0xf bank_mask:0xf ; encoding: [0xfa,0xac,0x00,0x7e,0x03,0x53,0x01,0xff]692v_cvt_pk_f32_fp8 v[0:1], v3 row_newbcast:3693 694// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU695// GFX942: v_cvt_pk_f32_fp8_e64 v[2:3], s3 mul:2 ; encoding: [0x02,0x00,0x96,0xd1,0x03,0x00,0x00,0x08]696v_cvt_pk_f32_fp8 v[2:3], s3 mul:2697 698// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU699// GFX942: v_cvt_pk_f32_fp8_sdwa v[2:3], s3 clamp mul:2 src0_sel:WORD_1 ; encoding: [0xf9,0xac,0x04,0x7e,0x03,0x66,0x85,0x00]700v_cvt_pk_f32_fp8 v[2:3], s3 clamp mul:2 src0_sel:WORD_1701 702// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU703// GFX942: v_cvt_pk_f32_fp8_e64 v[2:3], s3 clamp ; encoding: [0x02,0x80,0x96,0xd1,0x03,0x00,0x00,0x00]704v_cvt_pk_f32_fp8 v[2:3], s3 clamp705 706// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU707// GFX942: v_cvt_pk_bf8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa3,0xd2,0x02,0x07,0x02,0x00]708v_cvt_pk_bf8_f32 v1, v2, v3709 710// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU711// GFX942: v_cvt_pk_bf8_f32 v1, -v2, |v3| ; encoding: [0x01,0x02,0xa3,0xd2,0x02,0x07,0x02,0x20]712v_cvt_pk_bf8_f32 v1, -v2, |v3|713 714// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU715// GFX942: v_cvt_pk_bf8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa3,0xd2,0x02,0x06,0x01,0x00]716v_cvt_pk_bf8_f32 v1, s2, 3717 718// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU719// GFX942: v_cvt_pk_bf8_f32 v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x01,0x40,0xa3,0xd2,0x02,0x07,0x02,0x00]720v_cvt_pk_bf8_f32 v1, v2, v3 op_sel:[0,0,1]721 722// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU723// GFX942: v_cvt_pk_fp8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa2,0xd2,0x02,0x07,0x02,0x00]724v_cvt_pk_fp8_f32 v1, v2, v3725 726// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU727// GFX942: v_cvt_pk_fp8_f32 v1, -v2, |v3| ; encoding: [0x01,0x02,0xa2,0xd2,0x02,0x07,0x02,0x20]728v_cvt_pk_fp8_f32 v1, -v2, |v3|729 730// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU731// GFX942: v_cvt_pk_fp8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa2,0xd2,0x02,0x06,0x01,0x00]732v_cvt_pk_fp8_f32 v1, s2, 3733 734// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU735// GFX942: v_cvt_pk_fp8_f32 v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x01,0x40,0xa2,0xd2,0x02,0x07,0x02,0x00]736v_cvt_pk_fp8_f32 v1, v2, v3 op_sel:[0,0,1]737 738// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU739// GFX942: v_cvt_sr_bf8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa5,0xd2,0x02,0x07,0x02,0x00]740v_cvt_sr_bf8_f32 v1, v2, v3741 742// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU743// GFX942: v_cvt_sr_bf8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa5,0xd2,0x02,0x06,0x01,0x00]744v_cvt_sr_bf8_f32 v1, s2, 3745 746// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU747// GFX942: v_cvt_sr_bf8_f32 v1, v2, v3 op_sel:[0,0,1,1] ; encoding: [0x01,0x60,0xa5,0xd2,0x02,0x07,0x02,0x00]748v_cvt_sr_bf8_f32 v1, v2, v3 op_sel:[0,0,1,1]749 750// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU751// GFX942: v_cvt_sr_bf8_f32 v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0xa5,0xd2,0x02,0x07,0x02,0x00]752v_cvt_sr_bf8_f32 v1, v2, v3 op_sel:[0,0,0,1]753 754// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU755// GFX942: v_cvt_sr_bf8_f32 v1, -|s2|, v3 ; encoding: [0x01,0x01,0xa5,0xd2,0x02,0x06,0x02,0x20]756v_cvt_sr_bf8_f32 v1, -|s2|, v3757 758// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU759// GFX942: v_cvt_sr_fp8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa4,0xd2,0x02,0x07,0x02,0x00]760v_cvt_sr_fp8_f32 v1, v2, v3761 762// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU763// GFX942: v_cvt_sr_fp8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa4,0xd2,0x02,0x06,0x01,0x00]764v_cvt_sr_fp8_f32 v1, s2, 3765 766// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU767// GFX942: v_cvt_sr_fp8_f32 v1, v2, v3 op_sel:[0,0,1,1] ; encoding: [0x01,0x60,0xa4,0xd2,0x02,0x07,0x02,0x00]768v_cvt_sr_fp8_f32 v1, v2, v3 op_sel:[0,0,1,1]769 770// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU771// GFX942: v_cvt_sr_fp8_f32 v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x01,0x40,0xa4,0xd2,0x02,0x07,0x02,0x00]772v_cvt_sr_fp8_f32 v1, v2, v3 op_sel:[0,0,0,1]773 774// NOT-GFX942: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU775// GFX942: v_cvt_sr_fp8_f32 v1, -|s2|, v3 ; encoding: [0x01,0x01,0xa4,0xd2,0x02,0x06,0x02,0x20]776v_cvt_sr_fp8_f32 v1, -|s2|, v3777