================
@@ -12302,6 +12283,77 @@ SDValue
RISCVTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
return DAG.getNode(Opc, DL, Op.getValueType(), Op.getOperand(1),
Op.getOperand(2));
}
+ case Intrinsic::riscv_pnclipp:
+ case Intrinsic::riscv_pnclipup: {
+ EVT VT = Op.getValueType();
+ SDValue Rs1 = Op.getOperand(1);
+ SDValue Rs2 = Op.getOperand(2);
+ unsigned Opc = IntNo == Intrinsic::riscv_pnclipp ? RISCVISD::PNCLIPP
+ : RISCVISD::PNCLIPUP;
+
+ if (Subtarget.is64Bit()) {
+ if (VT == MVT::v2i32 && !Rs1.getValueType().isVector()) {
+ unsigned WOpc = IntNo == Intrinsic::riscv_pnclipp
----------------
TelGome wrote:
done
https://github.com/llvm/llvm-project/pull/215779
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits