[llvm] [X86][AVX10.2] Map vector saturated converts to public intrinsics (PR #121483)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 00:22:27 PST 2025


================
@@ -341,8 +341,13 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     }
   }
   if (Subtarget.hasAVX10_2()) {
-    setOperationAction(ISD::FP_TO_UINT_SAT, MVT::i32, Legal);
-    setOperationAction(ISD::FP_TO_SINT_SAT, MVT::i32, Legal);
+    setOperationAction(ISD::FP_TO_UINT_SAT, MVT::v2i32, Custom);
+    setOperationAction(ISD::FP_TO_SINT_SAT, MVT::v2i32, Custom);
+    for (MVT VT : {MVT::i32, MVT::v4i32, MVT::v8i32, MVT::v16i32, MVT::v2i64,
+                   MVT::v4i64, MVT::v8i64}) {
----------------
JaydeepChauhan14 wrote:

Done

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


More information about the llvm-commits mailing list