[llvm] [PowerPC] Forbid f128 SELECT_CC optimized into fsel (PR #71497)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 10:34:35 PST 2023


================
@@ -8080,7 +8080,8 @@ SDValue PPCTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const {
   // For more information, see section F.3 of the 2.06 ISA specification.
   // With ISA 3.0
   if ((!DAG.getTarget().Options.NoInfsFPMath && !Flags.hasNoInfs()) ||
-      (!DAG.getTarget().Options.NoNaNsFPMath && !Flags.hasNoNaNs()))
+      (!DAG.getTarget().Options.NoNaNsFPMath && !Flags.hasNoNaNs()) ||
+      ResVT == MVT::f128)
----------------
lei137 wrote:

does that mean fsel also does not support `ppc_fp128`?

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


More information about the llvm-commits mailing list