[llvm] [VP][RISCV] Introduce llvm.vp.minimum/maximum intrinsics (PR #74840)
Simeon K via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 09:20:44 PST 2024
================
@@ -6605,6 +6617,13 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
!Subtarget.hasVInstructionsF16()))
return SplitVPOp(Op, DAG);
return lowerVectorFTRUNC_FCEIL_FFLOOR_FROUND(Op, DAG, Subtarget);
+ case ISD::VP_FMAXIMUM:
+ case ISD::VP_FMINIMUM:
+ if (Op.getValueType() == MVT::nxv32f16 &&
+ (Subtarget.hasVInstructionsF16Minimal() &&
+ !Subtarget.hasVInstructionsF16()))
+ return SplitVPOp(Op, DAG);
----------------
simeonkr wrote:
I've added them now.
https://github.com/llvm/llvm-project/pull/74840
More information about the llvm-commits
mailing list