[llvm] [X86][AVX10.2] Map vector saturated converts to public intrinsics (PR #121483)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 05:24:52 PST 2025
================
@@ -56202,6 +56237,31 @@ static SDValue combineSIntToFP(SDNode *N, SelectionDAG &DAG,
return SDValue();
}
+// Custom handling for VCVTTPS2QQS/VCVTTPS2UQQS
+static SDValue combineFP_TO_xINT_SAT(SDNode *N, SelectionDAG &DAG,
+ const X86Subtarget &Subtarget) {
+ if (!Subtarget.hasAVX10_2())
+ return SDValue();
+
+ bool IsSigned = N->getOpcode() == ISD::FP_TO_SINT_SAT;
+ EVT SrcVT = N->getOperand(0).getValueType();
+ EVT DstVT = N->getValueType(0);
+ SDLoc dl(N);
+
+ if (SrcVT == MVT::v2f32 && DstVT == MVT::v2i64) {
+ // Convert v2f32 to v2f64
+ SDValue V2F64 =
----------------
phoebewang wrote:
ditto
https://github.com/llvm/llvm-project/pull/121483
More information about the llvm-commits
mailing list