================
@@ -2106,7 +2107,9 @@ def riscv_pm2addasu  : RVSDNode<"PM2ADDASU", 
SDT_RISCVHorizontalMulAcc>;
 def riscv_mulq  : RVSDNode<"MULQ",  SDTIntBinOp, [SDNPCommutative]>;
 def riscv_mulqr : RVSDNode<"MULQR", SDTIntBinOp, [SDNPCommutative]>;
 
-def SDT_RISCVPackedShift : SDTypeProfile<1, 2, [SDTCisVec<0>,
+// Shift amount is a scalar. The shifted value is a packed vector, or a scalar
+// for the 32-bit scalar saturating shifts.
+def SDT_RISCVPackedShift : SDTypeProfile<1, 2, [SDTCisInt<0>,
                                                 SDTCisSameAs<0, 1>,
                                                 SDTCisVT<2, XLenVT>]>;
 def riscv_psll : RVSDNode<"PSLL", SDT_RISCVPackedShift>;
----------------
sihuan wrote:

Done. psll/psrl/psra keep the vector-only SDT_RISCVPackedShift; the saturating 
shifts get SDT_RISCVSaturatingShift.

https://github.com/llvm/llvm-project/pull/241730
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to