[llvm] [AMDGPU][True16][CodeGen] true16 codegen for MadFmaMixPat (PR #124892)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 08:55:32 PST 2025


================
@@ -187,10 +228,14 @@ multiclass MadFmaMixPats<SDPatternOperator fma_like,
                 DSTCLAMP.NONE,
                 (i32 (IMPLICIT_DEF)))
   >;
+  } // End OtherPredicates
 
   // FIXME: Special case handling for maxhi (especially for clamp)
   // because dealing with the write to high half of the register is
   // difficult.
+  foreach p = [NotHasTrue16BitInsts, UseFakeTrue16Insts] in
+  let OtherPredicates = !if(HasFP32Denormals, [TruePredicate], [NoFP32Denormals]), True16Predicate = p in {
----------------
kosarev wrote:

OK

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


More information about the llvm-commits mailing list