[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:23 PST 2025


================
@@ -33665,6 +33676,28 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
     }
     return;
   }
+  case ISD::FP_TO_SINT_SAT:
+  case ISD::FP_TO_UINT_SAT: {
+    if (!Subtarget.hasAVX10_2())
+      return;
+
+    bool IsSigned = Opc == ISD::FP_TO_SINT_SAT;
+    EVT VT = N->getValueType(0);
+    SDValue Op = N->getOperand(0);
+    EVT OpVT = Op.getValueType();
+    SDValue V4I32;
----------------
phoebewang wrote:

This looks like a type.

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


More information about the llvm-commits mailing list