[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT new instructions. (PR #101599)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 06:03:48 PDT 2024
================
@@ -821,6 +821,88 @@ def X86vpdpbuuds : SDNode<"X86ISD::VPDPBUUDS", SDTVnni>;
def X86Vmpsadbw : SDNode<"X86ISD::MPSADBW", SDTX86PSADBW>;
+def SDTAVX10SATCVT_BF162I : SDTypeProfile<1, 1, [
+ SDTCVecEltisVT<0, i16>, SDTCVecEltisVT<1, bf16>
+]>;
+
+def SDTAVX10SATCVT_PH2I : SDTypeProfile<1, 1, [
+ SDTCVecEltisVT<0, i16>, SDTCVecEltisVT<1, f16>
+]>;
+
+def SDTAVX10SATCVT_PS2I : SDTypeProfile<1, 1, [
+ SDTCVecEltisVT<0, i32>, SDTCVecEltisVT<1, f32>
+]>;
----------------
phoebewang wrote:
You need to add `SrcInfo.VT` before `SrcInfo.RC:$src`, i.e., `(MaskNode (SrcInfo.VT SrcInfo.RC:$src))`
https://github.com/llvm/llvm-project/pull/101599
More information about the cfe-commits
mailing list