128 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx942 %s 2>&1 | FileCheck --check-prefix=GFX942 --implicit-check-not=error: %s2 3v_mac_f32 v0, v1, v24// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU5 6v_mac_f32_e64 v5, v1, v27// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU8 9v_mac_f32_dpp v5, v1, v2 quad_perm:[0,1,2,3] row_mask:0xf bank_mask:0xf10// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU11 12v_mac_f32_dpp v5, v1, v2 dpp8:[7,6,5,4,3,2,1,0]13// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU14 15v_mac_f32_sdwa v5, v1, v2 dst_sel:DWORD dst_unused:UNUSED_PRESERVE src0_sel:DWORD src1_sel:DWORD16// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU17 18v_mad_f32 v0, v1, v2, v319// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU20 21v_madak_f32 v0, v1, v2, 022// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU23 24v_madmk_f32 v0, v1, 0, v225// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU26 27v_mad_legacy_f32 v0, v1, v2, v328// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU29 30v_mov_b64 v[2:3], v[4:5] row_shl:131// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: DP ALU dpp only supports row_newbcast32 33v_mov_b64 v[2:3], -v[4:5]34// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.35 36v_mov_b64 v[2:3], |v[4:5]|37// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.38 39v_mov_b64 v[2:3], v[4:5] dst_sel:BYTE_0 dst_unused:UNUSED_PRESERVE src0_sel:DWORD40// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.41 42v_mov_b64_sdwa v[2:3], v[4:5]43// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: sdwa variant of this instruction is not supported44 45buffer_invl246// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU47 48global_load_dword v2, v[2:3], off glc49// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction50 51global_load_dword v2, v[2:3], off slc52// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction53 54global_load_dword v2, v[2:3], off scc55// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction56 57s_load_dword s2, s[2:3], 0x0 sc058// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction59 60buffer_atomic_swap v5, off, s[8:11], s3 glc61// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction62 63buffer_atomic_swap v5, off, s[8:11], s3 slc64// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction65 66buffer_wbl2 glc67// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction68 69buffer_wbl2 scc70// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction71 72v_dot2_u32_u16 v0, 1, v0, s2 op_sel:[0,1,0,1] op_sel_hi:[0,0,1,1]73// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid op_sel operand74 75v_cvt_f32_fp8 v1, sext(v3) src0_sel:BYTE_176// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.77 78v_cvt_pk_f32_bf8 v[2:3], sext(v3) src0_sel:BYTE_179// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.80 81v_cvt_sr_bf8_f32 v1, v2, -v382// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.83 84v_cvt_sr_fp8_f32 v1, v2, -v385// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.86 87v_cvt_sr_fp8_f32 v1, v2, v3 clamp88// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction89 90v_cvt_sr_fp8_f32 v1, v2, v3 mul:291// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.92 93v_cvt_pk_fp8_f32 v1, v2, v3 clamp94// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction95 96v_cvt_pk_fp8_f32 v1, v2, v3 mul:297// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: not a valid operand.98 99s_getreg_b32 s1, hwreg(HW_REG_FLAT_SCR_LO)100// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU101 102s_getreg_b32 s1, hwreg(HW_REG_FLAT_SCR_HI)103// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU104 105s_getreg_b32 s1, hwreg(HW_REG_XNACK_MASK)106// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU107 108s_getreg_b32 s1, hwreg(HW_REG_HW_ID1)109// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU110 111s_getreg_b32 s1, hwreg(HW_REG_HW_ID2)112// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU113 114s_getreg_b32 s1, hwreg(HW_REG_POPS_PACKER)115// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid hardware register: not supported on this GPU116 117ds_ordered_count v5, v1 offset:65535 gds118// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU119 120exp pos0 v3, v2, v1, v0121// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU122 123global_load_dword v[2:3], off lds124// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction125 126scratch_load_dword v2, off lds127// GFX942: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction128