233 changes: 122 additions & 111 deletions llvm/test/MC/AMDGPU/vop3-gfx9.s

Large diffs are not rendered by default.

130 changes: 65 additions & 65 deletions llvm/test/MC/AMDGPU/vop3.s

Large diffs are not rendered by default.

140 changes: 71 additions & 69 deletions llvm/test/MC/AMDGPU/vop_dpp.s

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions llvm/test/MC/AMDGPU/vop_sdwa.s

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions llvm/test/MC/AMDGPU/wave32.s
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ v_cndmask_b32_dpp v5, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1064: v_cndmask_b32_dpp v5, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x02,0x01,0xe4,0x00,0x00]

v_add_co_u32_e32 v2, vcc_lo, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:30: error: invalid operand for instruction
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_add_co_u32_e32 v2, vcc, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_add_co_ci_u32_e32 v3, vcc_lo, v3, v4, vcc_lo
// GFX1032: v_add_co_ci_u32_e32 v3, vcc_lo, v3, v4, vcc_lo ; encoding: [0x03,0x09,0x06,0x50]
Expand All @@ -108,20 +108,20 @@ v_add_co_ci_u32_e32 v3, v3, v4
// GFX1064: v_add_co_ci_u32_e32 v3, vcc, v3, v4, vcc ; encoding: [0x03,0x09,0x06,0x50]

v_sub_co_u32_e32 v2, vcc_lo, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:30: error: invalid operand for instruction
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_sub_co_u32_e32 v2, vcc, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_subrev_co_u32_e32 v2, vcc_lo, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:33: error: invalid operand for instruction
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_subrev_co_u32_e32 v2, vcc, s0, v2
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: e32 variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: e32 variant of this instruction is not supported

v_sub_co_ci_u32_e32 v3, vcc_lo, v3, v4, vcc_lo
// GFX1032: v_sub_co_ci_u32_e32 v3, vcc_lo, v3, v4, vcc_lo ; encoding: [0x03,0x09,0x06,0x52]
Expand All @@ -148,16 +148,16 @@ v_subrev_co_ci_u32_e32 v1, 0, v1
// GFX1064: v_subrev_co_ci_u32_e32 v1, vcc, 0, v1, vcc ; encoding: [0x80,0x02,0x02,0x54]

v_add_co_u32_sdwa v0, vcc_lo, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:38: error: invalid operand for instruction{{$}}
// GFX1064-ERR: :[[@LINE-2]]:35: error: invalid operand for instruction{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_add_co_u32_sdwa v0, vcc, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_add_co_u32_sdwa v0, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:30: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:30: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_add_co_ci_u32_sdwa v1, vcc_lo, v1, v4, vcc_lo dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD
// GFX1032: v_add_co_ci_u32_sdwa v1, vcc_lo, v1, v4, vcc_lo dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD ; encoding: [0xf9,0x08,0x02,0x50,0x01,0x06,0x00,0x06]
Expand All @@ -172,28 +172,28 @@ v_add_co_ci_u32_sdwa v1, v1, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYT
// GFX1064: v_add_co_ci_u32_sdwa v1, vcc, v1, v4, vcc dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD ; encoding: [0xf9,0x08,0x02,0x50,0x01,0x06,0x00,0x06]

v_sub_co_u32_sdwa v0, vcc_lo, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:38: error: invalid operand for instruction{{$}}
// GFX1064-ERR: :[[@LINE-2]]:35: error: invalid operand for instruction{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_sub_co_u32_sdwa v0, vcc, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_sub_co_u32_sdwa v0, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:30: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:30: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_subrev_co_u32_sdwa v0, vcc_lo, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:41: error: invalid operand for instruction{{$}}
// GFX1064-ERR: :[[@LINE-2]]:38: error: invalid operand for instruction{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_subrev_co_u32_sdwa v0, vcc, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:1: error: instruction not supported on this GPU
// GFX1064-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_subrev_co_u32_sdwa v0, v0, v4 dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:BYTE_0
// GFX1032-ERR: :[[@LINE-1]]:33: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:33: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: sdwa variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: sdwa variant of this instruction is not supported

v_sub_co_ci_u32_sdwa v1, vcc_lo, v1, v4, vcc_lo dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD
// GFX1032: v_sub_co_ci_u32_sdwa v1, vcc_lo, v1, v4, vcc_lo dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD ; encoding: [0xf9,0x08,0x02,0x52,0x01,0x06,0x00,0x06]
Expand Down Expand Up @@ -232,16 +232,16 @@ v_add_co_ci_u32_sdwa v1, vcc, sext(v1), sext(v4), vcc dst_sel:DWORD dst_unused:U
// GFX1064: v_add_co_ci_u32_sdwa v1, vcc, sext(v1), sext(v4), vcc dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:BYTE_0 src1_sel:DWORD ; encoding: [0xf9,0x08,0x02,0x50,0x01,0x06,0x08,0x0e]

v_add_co_u32_dpp v5, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:29: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:29: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_add_co_u32_dpp v5, vcc_lo, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:37: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:37: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_add_co_u32_dpp v5, vcc, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:34: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:34: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_add_co_ci_u32_dpp v5, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032: v_add_co_ci_u32_dpp v5, vcc_lo, v1, v2, vcc_lo quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x50,0x01,0xe4,0x00,0x00]
Expand All @@ -256,16 +256,16 @@ v_add_co_ci_u32_dpp v5, vcc, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_m
// GFX1064: v_add_co_ci_u32_dpp v5, vcc, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x50,0x01,0xe4,0x00,0x00]

v_sub_co_u32_dpp v5, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:29: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:29: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_sub_co_u32_dpp v5, vcc_lo, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:37: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:37: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_sub_co_u32_dpp v5, vcc, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:34: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:34: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_sub_co_ci_u32_dpp v5, vcc_lo, v1, v2, vcc_lo quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032: v_sub_co_ci_u32_dpp v5, vcc_lo, v1, v2, vcc_lo quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x52,0x01,0xe4,0x00,0x00]
Expand All @@ -276,16 +276,16 @@ v_sub_co_ci_u32_dpp v5, vcc, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_m
// GFX1064: v_sub_co_ci_u32_dpp v5, vcc, v1, v2, vcc quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x52,0x01,0xe4,0x00,0x00]

v_subrev_co_u32_dpp v5, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:32: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:32: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_subrev_co_u32_dpp v5, vcc_lo, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:40: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:40: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_subrev_co_u32_dpp v5, vcc, v1, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032-ERR: :[[@LINE-1]]:37: error: not a valid operand.{{$}}
// GFX1064-ERR: :[[@LINE-2]]:37: error: not a valid operand.{{$}}
// GFX1032-ERR: :[[@LINE-1]]:1: error: dpp variant of this instruction is not supported
// GFX1064-ERR: :[[@LINE-2]]:1: error: dpp variant of this instruction is not supported

v_subrev_co_ci_u32_dpp v5, vcc_lo, v1, v2, vcc_lo quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0
// GFX1032: v_subrev_co_ci_u32_dpp v5, vcc_lo, v1, v2, vcc_lo quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x54,0x01,0xe4,0x00,0x00]
Expand Down
24 changes: 16 additions & 8 deletions llvm/test/MC/AMDGPU/xdl-insts-err.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,45 @@
// GFX906-ERR: error: instruction not supported on this GPU
v_dot2c_f32_f16 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: e64 variant of this instruction is not supported
v_dot2c_f32_f16_e64 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: sdwa variant of this instruction is not supported
v_dot2c_f32_f16_sdwa v0, v1, v2

// GFX906-ERR: error: instruction not supported on this GPU
v_dot2c_i32_i16 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: e64 variant of this instruction is not supported
v_dot2c_i32_i16_e64 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: sdwa variant of this instruction is not supported
v_dot2c_i32_i16_sdwa v0, v1, v2

// GFX906-ERR: error: instruction not supported on this GPU
v_dot4c_i32_i8 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: e64 variant of this instruction is not supported
v_dot4c_i32_i8_e64 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: sdwa variant of this instruction is not supported
v_dot4c_i32_i8_sdwa v0, v1, v2

// GFX906-ERR: error: instruction not supported on this GPU
v_dot8c_i32_i4 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: e64 variant of this instruction is not supported
v_dot8c_i32_i4_e64 v0, v1, v2

// GCN-ERR: error: invalid instruction
// GFX906-ERR: error: instruction not supported on this GPU
// GFX908-ERR: error: sdwa variant of this instruction is not supported
v_dot8c_i32_i4_sdwa v0, v1, v2

// GFX906-ERR: error: instruction not supported on this GPU
Expand Down