[llvm] [AMDGPU][True16][MC] true16 for v_cmp_lt_f16 (PR #122499)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 09:53:13 PST 2025


================
@@ -1380,32 +1400,28 @@ class VOPC64_DPP16<bits<10> op, VOP_DPP_Pseudo ps, string opName = ps.OpName>
 
 class VOPC64_DPP16_Dst<bits<10> op, VOP_DPP_Pseudo ps,
                        string opName = ps.OpName>
-    : VOPC64_DPP16<op, ps, opName> {
+    : VOPC64_DPP<ps, opName>, VOP3_DPP_Enc<op, ps.Pfl, 1> {
   bits<8> sdst;
   let Inst{7-0} = sdst;
 }
 
 class VOPC64_DPP16_NoDst<bits<10> op, VOP_DPP_Pseudo ps,
                          string opName = ps.OpName>
-    : VOPC64_DPP16<op, ps, opName> {
+    : VOPC64_DPP<ps, opName>, VOP3_DPP_Enc<op, ps.Pfl, 1> {
   let Inst{7-0} = ? ;
 }
 
-class VOPC64_DPP8_Base<bits<10> op, string OpName, VOPProfile P>
-    : VOP3_DPP8_Base<OpName, P>, VOP3_DPPe_Common<op, P> {
-  Instruction Opcode = !cast<Instruction>(NAME);
-
-  bits<8> src0;
-  bits<24> dpp8;
-  bits<9> fi;
-
-  let Inst{40-32} = fi;
-  let Inst{71-64} = !if(P.HasSrc0, src0{7-0}, 0);
-  let Inst{95-72} = dpp8{23-0};
+class VOPC64_DPP16_Dst_t16<bits<10> op, VOP_DPP_Pseudo ps,
+                       string opName = ps.OpName>
----------------
kosarev wrote:

Nit: indentation is off.

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


More information about the llvm-commits mailing list