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


================
@@ -5456,6 +5456,39 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
     break;
   }
 
+  case X86ISD::FP_TO_SINT_SAT_CUSTOM:
----------------
JaydeepChauhan14 wrote:

For 128 variants of **VCVTTPD2DQS/VCVTTPD2UDQS/VCVTTPS2QQS/VCVTTPS2UQQS** instructions, Input/Output vector element counts is not same (https://github.com/llvm/llvm-project/blob/82fecab85ae2d72ffac0e44749d99f12d6f71cc0/llvm/include/llvm/IR/IntrinsicsX86.td#L5549)
But for **FP_TO_xINT_SAT** it should be same (https://github.com/llvm/llvm-project/blob/82fecab85ae2d72ffac0e44749d99f12d6f71cc0/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp#L7469).
So done target dependent custom handling for these 4 instructions.

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


More information about the llvm-commits mailing list