1// RUN: llvm-mc -triple=amdgcn -mcpu=gfx940 -show-encoding %s | FileCheck --check-prefix=GFX940 --strict-whitespace %s 2// RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding %s | FileCheck --check-prefix=GFX940 --strict-whitespace %s 3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx90a %s 2>&1 | FileCheck --check-prefixes=NOT-GFX940,GFX90A --implicit-check-not=error: %s 4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefixes=NOT-GFX940,GFX10 --implicit-check-not=error: %s 5 6// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 7// GFX940: 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 sc0 9 10// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 11// GFX940: 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 nosc0 13 14// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 15// GFX940: 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 sc1 17 18// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 19// GFX940: 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 nosc1 21 22// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 23// GFX940: 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 nt 25 26// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 27// GFX940: 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 nont 29 30// GFX940: 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 glc 32 33// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 34// GFX940: 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 sc1 36 37// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 38// GFX940: flat_atomic_add_f32 v[2:3], v1 ; encoding: [0x00,0x00,0x34,0xdd,0x02,0x01,0x00,0x00] 39flat_atomic_add_f32 v[2:3], v1 40 41// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 42// GFX940: flat_atomic_add_f32 v[2:3], a1 ; encoding: [0x00,0x00,0x34,0xdd,0x02,0x01,0x80,0x00] 43flat_atomic_add_f32 v[2:3], a1 44 45// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 46// GFX940: 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 sc0 48 49// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 50// GFX940: 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 sc0 52 53// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 54// GFX940: 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 sc0 56 57// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 58// GFX940: 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 sc0 60 61// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 62// GFX940: 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], v1 64 65// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 66// GFX940: 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], a1 68 69// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 70// GFX940: 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 sc0 72 73// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 74// GFX940: 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 sc0 76 77// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 78// GFX940: 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], v1 80 81// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 82// GFX940: 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], a1 84 85// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 86// GFX940: 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 sc0 88 89// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 90// GFX940: 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 sc0 92 93// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 94// GFX940: 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, off 96 97// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 98// GFX940: 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, off 100 101// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 102// GFX940: ds_pk_add_f16 v2, v1 ; encoding: [0x00,0x00,0x2e,0xd8,0x02,0x01,0x00,0x00] 103ds_pk_add_f16 v2, v1 104 105// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 106// GFX940: ds_pk_add_f16 v2, a1 ; encoding: [0x00,0x00,0x2e,0xda,0x02,0x01,0x00,0x00] 107ds_pk_add_f16 v2, a1 108 109// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 110// GFX940: ds_pk_add_rtn_f16 v3, v2, v1 ; encoding: [0x00,0x00,0x6e,0xd9,0x02,0x01,0x00,0x03] 111ds_pk_add_rtn_f16 v3, v2, v1 112 113// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 114// GFX940: ds_pk_add_rtn_f16 a3, v2, a1 ; encoding: [0x00,0x00,0x6e,0xdb,0x02,0x01,0x00,0x03] 115ds_pk_add_rtn_f16 a3, v2, a1 116 117// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 118// GFX940: ds_pk_add_bf16 v2, v1 ; encoding: [0x00,0x00,0x30,0xd8,0x02,0x01,0x00,0x00] 119ds_pk_add_bf16 v2, v1 120 121// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 122// GFX940: ds_pk_add_bf16 v2, a1 ; encoding: [0x00,0x00,0x30,0xda,0x02,0x01,0x00,0x00] 123ds_pk_add_bf16 v2, a1 124 125// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 126// GFX940: ds_pk_add_rtn_bf16 v3, v2, v1 ; encoding: [0x00,0x00,0x70,0xd9,0x02,0x01,0x00,0x03] 127ds_pk_add_rtn_bf16 v3, v2, v1 128 129// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 130// GFX940: ds_pk_add_rtn_bf16 a3, v2, a1 ; encoding: [0x00,0x00,0x70,0xdb,0x02,0x01,0x00,0x03] 131ds_pk_add_rtn_bf16 a3, v2, a1 132 133// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 134// GFX940: global_load_lds_dword v[2:3], off ; encoding: [0x00,0x80,0xa8,0xdc,0x02,0x00,0x7f,0x00] 135global_load_lds_dword v[2:3], off 136 137// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 138// GFX940: 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 sc1 140 141// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 142// GFX940: 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:4 144 145// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 146// GFX940: 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:4 148 149// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 150// GFX940: global_load_lds_ubyte v[2:3], off ; encoding: [0x00,0x80,0x98,0xdc,0x02,0x00,0x7f,0x00] 151global_load_lds_ubyte v[2:3], off 152 153// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 154// GFX940: global_load_lds_sbyte v[2:3], off ; encoding: [0x00,0x80,0x9c,0xdc,0x02,0x00,0x7f,0x00] 155global_load_lds_sbyte v[2:3], off 156 157// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 158// GFX940: global_load_lds_sshort v[2:3], off ; encoding: [0x00,0x80,0xa4,0xdc,0x02,0x00,0x7f,0x00] 159global_load_lds_sshort v[2:3], off 160 161// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 162// GFX940: global_load_lds_ushort v[2:3], off ; encoding: [0x00,0x80,0xa0,0xdc,0x02,0x00,0x7f,0x00] 163global_load_lds_ushort v[2:3], off 164 165// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 166// GFX940: scratch_load_lds_dword v2, off ; encoding: [0x00,0x60,0xa8,0xdc,0x02,0x00,0x7f,0x00] 167scratch_load_lds_dword v2, off 168 169// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 170// GFX940: scratch_load_lds_dword v2, s4 ; encoding: [0x00,0x60,0xa8,0xdc,0x02,0x00,0x04,0x00] 171scratch_load_lds_dword v2, s4 172 173// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 174// GFX940: scratch_load_lds_dword v2, s4 offset:4 ; encoding: [0x04,0x60,0xa8,0xdc,0x02,0x00,0x04,0x00] 175scratch_load_lds_dword v2, s4 offset:4 176 177// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 178// GFX940: scratch_load_lds_dword off, s4 offset:4 ; encoding: [0x04,0x40,0xa8,0xdc,0x00,0x00,0x04,0x00] 179scratch_load_lds_dword off, s4 offset:4 180 181// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: 182// GFX940: scratch_load_lds_dword off, off offset:4 ; encoding: [0x04,0x40,0xa8,0xdc,0x00,0x00,0x7f,0x00] 183scratch_load_lds_dword off, off offset:4 184 185// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 186// GFX940: scratch_load_lds_ubyte v2, off ; encoding: [0x00,0x60,0x98,0xdc,0x02,0x00,0x7f,0x00] 187scratch_load_lds_ubyte v2, off 188 189// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 190// GFX940: scratch_load_lds_sbyte v2, off ; encoding: [0x00,0x60,0x9c,0xdc,0x02,0x00,0x7f,0x00] 191scratch_load_lds_sbyte v2, off 192 193// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 194// GFX940: scratch_load_lds_ushort v2, off ; encoding: [0x00,0x60,0xa0,0xdc,0x02,0x00,0x7f,0x00] 195scratch_load_lds_ushort v2, off 196 197// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 198// GFX940: scratch_load_lds_sshort v2, off ; encoding: [0x00,0x60,0xa4,0xdc,0x02,0x00,0x7f,0x00] 199scratch_load_lds_sshort v2, off 200 201// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU 202// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU 206// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU 210// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU 214// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU 218// GFX940: 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// GFX940: s_getreg_b32 s1, hwreg(HW_REG_TMA_HI) ; encoding: [0x13,0xf8,0x81,0xb8] 222s_getreg_b32 s1, hwreg(19) 223 224// GFX940: s_getreg_b32 s1, hwreg(HW_REG_XCC_ID) ; encoding: [0x14,0xf8,0x81,0xb8] 225s_getreg_b32 s1, hwreg(20) 226 227// GFX940: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA) ; encoding: [0x15,0xf8,0x81,0xb8] 228s_getreg_b32 s1, hwreg(21) 229 230// GFX940: s_getreg_b32 s1, hwreg(HW_REG_SQ_PERF_SNAPSHOT_DATA1) ; encoding: [0x16,0xf8,0x81,0xb8] 231s_getreg_b32 s1, hwreg(22) 232 233// GFX940: 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// GFX940: 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// GFX940: s_getreg_b32 s1, hwreg(25) ; encoding: [0x19,0xf8,0x81,0xb8] 240s_getreg_b32 s1, hwreg(25) 241 242// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 243// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 247// GFX940: 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:1 249 250// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 251// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 255// GFX940: v_mov_b64_e32 v[2:3], 1 ; encoding: [0x81,0x70,0x04,0x7e] 256v_mov_b64 v[2:3], 1 257 258// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 259// GFX940: v_mov_b64_e32 v[2:3], 0x64 ; encoding: [0xff,0x70,0x04,0x7e,0x64,0x00,0x00,0x00] 260v_mov_b64 v[2:3], 0x64 261 262// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 263// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 267// GFX940: 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, 1 269 270// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 271// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 275// GFX940: 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 instruction 279// GFX10: error: instruction not supported on this GPU 280// GFX940: buffer_wbl2 sc1 ; encoding: [0x00,0x80,0xa0,0xe0,0x00,0x00,0x00,0x00] 281buffer_wbl2 sc1 282 283// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 284// GFX10: error: instruction not supported on this GPU 285// GFX940: buffer_wbl2 sc0 ; encoding: [0x00,0x40,0xa0,0xe0,0x00,0x00,0x00,0x00] 286buffer_wbl2 sc0 287 288// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 289// GFX10: error: instruction not supported on this GPU 290// GFX940: buffer_wbl2 sc0 sc1 ; encoding: [0x00,0xc0,0xa0,0xe0,0x00,0x00,0x00,0x00] 291buffer_wbl2 sc0 sc1 292 293// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 294// GFX940: buffer_inv sc0 ; encoding: [0x00,0x40,0xa4,0xe0,0x00,0x00,0x00,0x00] 295buffer_inv sc0 296 297// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 298// GFX940: buffer_inv sc1 ; encoding: [0x00,0x80,0xa4,0xe0,0x00,0x00,0x00,0x00] 299buffer_inv sc1 300 301// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 302// GFX940: buffer_inv sc0 sc1 ; encoding: [0x00,0xc0,0xa4,0xe0,0x00,0x00,0x00,0x00] 303buffer_inv sc0 sc1 304 305// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 306// GFX940: 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 sc0 308 309// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: invalid operand for instruction 310// GFX940: 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 nt 312 313// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 314// GFX940: 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 GPU 318// GFX940: 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 GPU 322// GFX940: 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 GPU 326// GFX940: 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 GPU 330// GFX940: 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 GPU 334// GFX940: 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 GPU 338// GFX940: 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 GPU 342// GFX940: 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 GPU 346// GFX940: 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 GPU 350// GFX940: 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 GPU 354// GFX940: 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 GPU 358// GFX940: 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 GPU 362// GFX940: 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 GPU 366// GFX940: 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 GPU 370// GFX940: 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 GPU 374// GFX940: 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 GPU 378// GFX940: 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 GPU 382// GFX940: 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 GPU 386// GFX940: 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 GPU 390// GFX940: 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 GPU 394// GFX940: 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 GPU 398// GFX940: 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 GPU 402// GFX940: 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 GPU 406// GFX940: 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 GPU 410// GFX940: 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_scratch 412 413// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 414// GFX940: 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], vcc 416 417// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 418// GFX940: 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], exec 420 421// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 422// GFX940: 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], 0 424 425// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 426// GFX940: 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], -1 428 429// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 430// GFX940: 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.5 432 433// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 434// GFX940: 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.0 436 437// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 438// GFX940: 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 GPU 442// GFX940: 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 GPU 446// GFX940: 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 GPU 450// GFX940: 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 GPU 454// GFX940: 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 GPU 458// GFX940: 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 GPU 462// GFX940: 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] clamp 464 465// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 466// GFX940: 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:2 468 469// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 470// GFX940: 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:4 472 473// GFX10: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 474// GFX940: 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:2 476 477// GFX90A: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 478// GFX940: v_fmamk_f32 v0, v2, 0x42c80000, v3 ; encoding: [0x02,0x07,0x00,0x2e,0x00,0x00,0xc8,0x42] 479v_fmamk_f32 v0, v2, 100.0, v3 480 481// GFX90A: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 482// GFX940: v_fmaak_f32 v0, v2, v3, 0x42c80000 ; encoding: [0x02,0x07,0x00,0x30,0x00,0x00,0xc8,0x42] 483v_fmaak_f32 v0, v2, v3, 100.0 484 485// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 486// GFX10: error: instruction not supported on this GPU 487// GFX940: 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 sc1 489 490// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 491// GFX10: error: instruction not supported on this GPU 492// GFX940: 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 sc1 494 495// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 496// GFX10: error: instruction not supported on this GPU 497// GFX940: 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] sc1 499 500// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 501// GFX10: error: instruction not supported on this GPU 502// GFX940: 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 sc1 504 505// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 506// GFX10: error: instruction not supported on this GPU 507// GFX940: 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 sc1 509 510// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 511// GFX10: error: instruction not supported on this GPU 512// GFX940: 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 sc1 514 515// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 516// GFX10: error: instruction not supported on this GPU 517// GFX940: 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] sc1 519 520// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 521// GFX10: error: instruction not supported on this GPU 522// GFX940: 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] sc1 524 525// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 526// GFX10: error: instruction not supported on this GPU 527// GFX940: 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] sc1 529 530// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 531// GFX10: error: instruction not supported on this GPU 532// GFX940: 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 sc1 534 535// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 536// GFX10: error: instruction not supported on this GPU 537// GFX940: 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 sc1 539 540// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 541// GFX10: error: instruction not supported on this GPU 542// GFX940: 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 sc1 544 545// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 546// GFX10: error: instruction not supported on this GPU 547// GFX940: 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 sc1 549 550// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 551// GFX10: error: instruction not supported on this GPU 552// GFX940: 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 sc1 554 555// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 556// GFX10: error: instruction not supported on this GPU 557// GFX940: 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 sc1 559 560// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 561// GFX10: error: instruction not supported on this GPU 562// GFX940: 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 sc1 564 565// GFX90A: :[[@LINE+3]]:{{[0-9]+}}: error: invalid operand for instruction 566// GFX10: error: instruction not supported on this GPU 567// GFX940: 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 sc1 569 570// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 571// GFX940: v_cvt_f32_bf8_e32 v1, s3 ; encoding: [0x03,0xaa,0x02,0x7e] 572v_cvt_f32_bf8 v1, s3 573 574// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 575// GFX940: v_cvt_f32_bf8_e32 v1, 3 ; encoding: [0x83,0xaa,0x02,0x7e] 576v_cvt_f32_bf8 v1, 3 577 578// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 579// GFX940: v_cvt_f32_bf8_e32 v1, v3 ; encoding: [0x03,0xab,0x02,0x7e] 580v_cvt_f32_bf8 v1, v3 581 582// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 583// GFX940: 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_1 585 586// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 587// GFX940: 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:0xf 589 590// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 591// GFX940: 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:2 593 594// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 595// GFX940: 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_1 597 598// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 599// GFX940: v_cvt_f32_bf8_e64 v1, s3 clamp ; encoding: [0x01,0x80,0x95,0xd1,0x03,0x00,0x00,0x00] 600v_cvt_f32_bf8 v1, s3 clamp 601 602// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 603// GFX940: v_cvt_f32_fp8_e32 v1, s3 ; encoding: [0x03,0xa8,0x02,0x7e] 604v_cvt_f32_fp8 v1, s3 605 606// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 607// GFX940: v_cvt_f32_fp8_e32 v1, 3 ; encoding: [0x83,0xa8,0x02,0x7e] 608v_cvt_f32_fp8 v1, 3 609 610// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 611// GFX940: v_cvt_f32_fp8_e32 v1, v3 ; encoding: [0x03,0xa9,0x02,0x7e] 612v_cvt_f32_fp8 v1, v3 613 614// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 615// GFX940: 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_1 617 618// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 619// GFX940: 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:0xf 621 622// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 623// GFX940: 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:2 625 626// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 627// GFX940: 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_1 629 630// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 631// GFX940: v_cvt_f32_fp8_e64 v1, s3 clamp ; encoding: [0x01,0x80,0x94,0xd1,0x03,0x00,0x00,0x00] 632v_cvt_f32_fp8 v1, s3 clamp 633 634// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 635// GFX940: 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_1 637 638// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 639// GFX940: v_cvt_pk_f32_bf8_e32 v[2:3], s3 ; encoding: [0x03,0xae,0x04,0x7e] 640v_cvt_pk_f32_bf8 v[2:3], s3 641 642// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 643// GFX940: v_cvt_pk_f32_bf8_e32 v[2:3], 3 ; encoding: [0x83,0xae,0x04,0x7e] 644v_cvt_pk_f32_bf8 v[2:3], 3 645 646// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 647// GFX940: v_cvt_pk_f32_bf8_e32 v[2:3], v3 ; encoding: [0x03,0xaf,0x04,0x7e] 648v_cvt_pk_f32_bf8 v[2:3], v3 649 650// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 651// GFX940: 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_1 653 654// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 655// GFX940: 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:3 657 658// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 659// GFX940: 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:2 661 662// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 663// GFX940: 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_1 665 666// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 667// GFX940: 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 clamp 669 670// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 671// GFX940: v_cvt_pk_f32_fp8_e32 v[2:3], s3 ; encoding: [0x03,0xac,0x04,0x7e] 672v_cvt_pk_f32_fp8 v[2:3], s3 673 674// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 675// GFX940: v_cvt_pk_f32_fp8_e32 v[2:3], 3 ; encoding: [0x83,0xac,0x04,0x7e] 676v_cvt_pk_f32_fp8 v[2:3], 3 677 678// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 679// GFX940: v_cvt_pk_f32_fp8_e32 v[2:3], v3 ; encoding: [0x03,0xad,0x04,0x7e] 680v_cvt_pk_f32_fp8 v[2:3], v3 681 682// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 683// GFX940: 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_1 685 686// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 687// GFX940: 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_1 689 690// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 691// GFX940: 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:3 693 694// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 695// GFX940: 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:2 697 698// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 699// GFX940: 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_1 701 702// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 703// GFX940: 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 clamp 705 706// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 707// GFX940: v_cvt_pk_bf8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa3,0xd2,0x02,0x07,0x02,0x00] 708v_cvt_pk_bf8_f32 v1, v2, v3 709 710// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 711// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 715// GFX940: v_cvt_pk_bf8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa3,0xd2,0x02,0x06,0x01,0x00] 716v_cvt_pk_bf8_f32 v1, s2, 3 717 718// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 719// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 723// GFX940: v_cvt_pk_fp8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa2,0xd2,0x02,0x07,0x02,0x00] 724v_cvt_pk_fp8_f32 v1, v2, v3 725 726// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 727// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 731// GFX940: v_cvt_pk_fp8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa2,0xd2,0x02,0x06,0x01,0x00] 732v_cvt_pk_fp8_f32 v1, s2, 3 733 734// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 735// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 739// GFX940: v_cvt_sr_bf8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa5,0xd2,0x02,0x07,0x02,0x00] 740v_cvt_sr_bf8_f32 v1, v2, v3 741 742// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 743// GFX940: v_cvt_sr_bf8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa5,0xd2,0x02,0x06,0x01,0x00] 744v_cvt_sr_bf8_f32 v1, s2, 3 745 746// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 747// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 751// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 755// GFX940: v_cvt_sr_bf8_f32 v1, -|s2|, v3 ; encoding: [0x01,0x01,0xa5,0xd2,0x02,0x06,0x02,0x20] 756v_cvt_sr_bf8_f32 v1, -|s2|, v3 757 758// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 759// GFX940: v_cvt_sr_fp8_f32 v1, v2, v3 ; encoding: [0x01,0x00,0xa4,0xd2,0x02,0x07,0x02,0x00] 760v_cvt_sr_fp8_f32 v1, v2, v3 761 762// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 763// GFX940: v_cvt_sr_fp8_f32 v1, s2, 3 ; encoding: [0x01,0x00,0xa4,0xd2,0x02,0x06,0x01,0x00] 764v_cvt_sr_fp8_f32 v1, s2, 3 765 766// NOT-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 767// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 771// GFX940: 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-GFX940: :[[@LINE+2]]:{{[0-9]+}}: error: instruction not supported on this GPU 775// GFX940: v_cvt_sr_fp8_f32 v1, -|s2|, v3 ; encoding: [0x01,0x01,0xa4,0xd2,0x02,0x06,0x02,0x20] 776v_cvt_sr_fp8_f32 v1, -|s2|, v3 777