Skip to content

Commit 28ae363

Browse files
authored
[AMDGPU][True16][MC] true16 for v_cmp_xx_i/u16 (#122968)
A bulk commit of true16 support for v_cmp_xx_i/u16 instructions including: v_cmp_lt_i16 v_cmp_eq_i16 v_cmp_le_i16 v_cmp_gt_i16 v_cmp_ne_i16 v_cmp_ge_i16 v_cmp_lt_u16 v_cmp_eq_u16 v_cmp_le_u16 v_cmp_gt_u16 v_cmp_ne_u16 v_cmp_ge_u16
1 parent 2f1bc68 commit 28ae363

29 files changed

+23543
-10124
lines changed

llvm/lib/Target/AMDGPU/VOPCInstructions.td

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,18 +1873,18 @@ defm V_CMP_NLT_F32 : VOPC_Real_gfx11_gfx12<0x01e>;
18731873
defm V_CMP_T_F32 : VOPC_Real_with_name_gfx11<0x01f, "V_CMP_TRU_F32", "v_cmp_t_f32">;
18741874
defm V_CMP_T_F64 : VOPC_Real_with_name_gfx11<0x02f, "V_CMP_TRU_F64", "v_cmp_t_f64">;
18751875

1876-
defm V_CMP_LT_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x031, "v_cmp_lt_i16">;
1877-
defm V_CMP_EQ_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x032, "v_cmp_eq_i16">;
1878-
defm V_CMP_LE_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x033, "v_cmp_le_i16">;
1879-
defm V_CMP_GT_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x034, "v_cmp_gt_i16">;
1880-
defm V_CMP_NE_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x035, "v_cmp_ne_i16">;
1881-
defm V_CMP_GE_I16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x036, "v_cmp_ge_i16">;
1882-
defm V_CMP_LT_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x039, "v_cmp_lt_u16">;
1883-
defm V_CMP_EQ_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x03a, "v_cmp_eq_u16">;
1884-
defm V_CMP_LE_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x03b, "v_cmp_le_u16">;
1885-
defm V_CMP_GT_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x03c, "v_cmp_gt_u16">;
1886-
defm V_CMP_NE_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x03d, "v_cmp_ne_u16">;
1887-
defm V_CMP_GE_U16_fake16 : VOPC_Real_t16_gfx11_gfx12<0x03e, "v_cmp_ge_u16">;
1876+
defm V_CMP_LT_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x031, "v_cmp_lt_i16">;
1877+
defm V_CMP_EQ_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x032, "v_cmp_eq_i16">;
1878+
defm V_CMP_LE_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x033, "v_cmp_le_i16">;
1879+
defm V_CMP_GT_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x034, "v_cmp_gt_i16">;
1880+
defm V_CMP_NE_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x035, "v_cmp_ne_i16">;
1881+
defm V_CMP_GE_I16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x036, "v_cmp_ge_i16">;
1882+
defm V_CMP_LT_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x039, "v_cmp_lt_u16">;
1883+
defm V_CMP_EQ_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x03a, "v_cmp_eq_u16">;
1884+
defm V_CMP_LE_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x03b, "v_cmp_le_u16">;
1885+
defm V_CMP_GT_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x03c, "v_cmp_gt_u16">;
1886+
defm V_CMP_NE_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x03d, "v_cmp_ne_u16">;
1887+
defm V_CMP_GE_U16 : VOPC_Real_t16_and_fake16_gfx11_gfx12<0x03e, "v_cmp_ge_u16">;
18881888

18891889
defm V_CMP_F_I32 : VOPC_Real_gfx11<0x040>;
18901890
defm V_CMP_LT_I32 : VOPC_Real_gfx11_gfx12<0x041>;

llvm/test/MC/AMDGPU/gfx11_asm_vop3_dpp16_from_vopc.s

Lines changed: 828 additions & 648 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vop3_dpp8_from_vopc.s

Lines changed: 372 additions & 240 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vop3_from_vopc.s

Lines changed: 384 additions & 96 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vopc.s

Lines changed: 1296 additions & 720 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vopc_dpp16.s

Lines changed: 1958 additions & 710 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vopc_dpp8.s

Lines changed: 432 additions & 144 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vopc_t16_err.s

Lines changed: 1360 additions & 568 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx11_asm_vopc_t16_promote.s

Lines changed: 1321 additions & 529 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vop3c.s

Lines changed: 408 additions & 120 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vop3c_dpp16.s

Lines changed: 924 additions & 744 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vop3c_dpp8.s

Lines changed: 468 additions & 336 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vopc.s

Lines changed: 1200 additions & 720 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vopc_dpp16.s

Lines changed: 1831 additions & 679 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vopc_dpp8.s

Lines changed: 336 additions & 144 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vopc_t16_err.s

Lines changed: 1360 additions & 568 deletions
Large diffs are not rendered by default.

llvm/test/MC/AMDGPU/gfx12_asm_vopc_t16_promote.s

Lines changed: 1705 additions & 649 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_dpp16_from_vopc.txt

Lines changed: 816 additions & 324 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_dpp8_from_vopc.txt

Lines changed: 384 additions & 108 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_from_vopc.txt

Lines changed: 240 additions & 48 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vopc.txt

Lines changed: 1080 additions & 360 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vopc_dpp16.txt

Lines changed: 888 additions & 336 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vopc_dpp8.txt

Lines changed: 312 additions & 48 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3c.txt

Lines changed: 252 additions & 48 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3c_dpp16.txt

Lines changed: 868 additions & 349 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3c_dpp8.txt

Lines changed: 432 additions & 132 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopc.txt

Lines changed: 1008 additions & 360 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopc_dpp16.txt

Lines changed: 816 additions & 336 deletions
Large diffs are not rendered by default.

llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopc_dpp8.txt

Lines changed: 252 additions & 48 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)