[llvm] [AMDGPU][True16][MC] support more VOP3 inst in true16/fake16 format (PR #113603)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 17 19:40:34 PST 2024


================
@@ -4297,49 +4405,61 @@ v_min3_f32 v5, -src_scc, |vcc_lo|, -1 mul:4
 v_min3_f32 v255, -|0xaf123456|, -|vcc_hi|, null clamp div:2
 // GFX11: encoding: [0xff,0x83,0x19,0xd6,0xff,0xd6,0xf0,0x79,0x56,0x34,0x12,0xaf]
 
-v_min3_i16 v5, v1, v2, s3
+v_min3_i16 v5.l, v1.l, v2.l, s3
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x01,0x05,0x0e,0x00]
 
-v_min3_i16 v5, v255, s2, s105
-// GFX11: encoding: [0x05,0x00,0x4a,0xd6,0xff,0x05,0xa4,0x01]
+v_min3_i16 v5.l, v255.h, s2, s105
+// GFX11: encoding: [0x05,0x08,0x4a,0xd6,0xff,0x05,0xa4,0x01]
 
-v_min3_i16 v5, s1, v255, exec_hi
-// GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x01,0xfe,0xff,0x01]
+v_min3_i16 v5.l, s1, v255.h, exec_hi
+// GFX11: encoding: [0x05,0x10,0x4a,0xd6,0x01,0xfe,0xff,0x01]
 
-v_min3_i16 v5, s105, s105, exec_lo
+v_min3_i16 v5.l, s105, s105, exec_lo
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x69,0xd2,0xf8,0x01]
 
-v_min3_i16 v5, vcc_lo, ttmp15, v3
+v_min3_i16 v5.l, vcc_lo, ttmp15, v3.l
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x6a,0xf6,0x0c,0x04]
 
-v_min3_i16 v5, vcc_hi, 0xfe0b, v255
-// GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x6b,0xfe,0xfd,0x07,0x0b,0xfe,0x00,0x00]
+v_min3_i16 v5.l, vcc_hi, 0xfe0b, v255.h
+// GFX11: encoding: [0x05,0x20,0x4a,0xd6,0x6b,0xfe,0xfd,0x07,0x0b,0xfe,0x00,0x00]
 
-v_min3_i16 v5, ttmp15, src_scc, ttmp15
+v_min3_i16 v5.l, ttmp15, src_scc, ttmp15
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x7b,0xfa,0xed,0x01]
 
-v_min3_i16 v5, m0, 0.5, m0
+v_min3_i16 v5.l, m0, 0.5, m0
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x7d,0xe0,0xf5,0x01]
 
-v_min3_i16 v5, exec_lo, -1, vcc_hi
+v_min3_i16 v5.l, exec_lo, -1, vcc_hi
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x7e,0x82,0xad,0x01]
 
-v_min3_i16 v5, exec_hi, null, vcc_lo op_sel:[1,1,1,1]
+v_min3_i16 v5.h, exec_hi, null, vcc_lo op_sel:[1,1,1,1]
 // GFX11: encoding: [0x05,0x78,0x4a,0xd6,0x7f,0xf8,0xa8,0x01]
 
-v_min3_i16 v5, null, exec_lo, 0xfe0b op_sel:[0,0,0,0]
+v_min3_i16 v5.l, null, exec_lo, 0xfe0b
 // GFX11: encoding: [0x05,0x00,0x4a,0xd6,0x7c,0xfc,0xfc,0x03,0x0b,0xfe,0x00,0x00]
 
-v_min3_i16 v5, -1, exec_hi, src_scc op_sel:[1,0,0,0]
+v_min3_i16 v5.l, -1, exec_hi, src_scc op_sel:[1,0,0,0]
 // GFX11: encoding: [0x05,0x08,0x4a,0xd6,0xc1,0xfe,0xf4,0x03]
 
-v_min3_i16 v5, 0.5, m0, 0.5 op_sel:[0,1,0,0]
+v_min3_i16 v5.l, 0.5, m0, 0.5 op_sel:[0,1,0,0]
 // GFX11: encoding: [0x05,0x10,0x4a,0xd6,0xf0,0xfa,0xc0,0x03]
 
-v_min3_i16 v5, src_scc, vcc_lo, -1 op_sel:[0,0,1,0]
+v_min3_i16 v5.l, src_scc, vcc_lo, -1 op_sel:[0,0,1,0]
 // GFX11: encoding: [0x05,0x20,0x4a,0xd6,0xfd,0xd4,0x04,0x03]
 
-v_min3_i16 v255, 0xfe0b, vcc_hi, null op_sel:[0,0,0,1]
+v_min3_i16 v255.h, 0xfe0b, vcc_hi, null
+// GFX11: encoding: [0xff,0x40,0x4a,0xd6,0xff,0xd6,0xf0,0x01,0x0b,0xfe,0x00,0x00]
----------------
broxigarchen wrote:

removed and cleaned all

https://github.com/llvm/llvm-project/pull/113603


More information about the llvm-commits mailing list