Lines Matching refs:DstVT
1775 bool RISCVTargetLowering::isTruncateFree(EVT SrcVT, EVT DstVT) const { in isTruncateFree()
1778 if (SrcVT.isVector() || DstVT.isVector() || !SrcVT.isInteger() || in isTruncateFree()
1779 !DstVT.isInteger()) in isTruncateFree()
1782 unsigned DestBits = DstVT.getSizeInBits(); in isTruncateFree()
1801 bool RISCVTargetLowering::isSExtCheaperThanZExt(EVT SrcVT, EVT DstVT) const { in isSExtCheaperThanZExt()
1802 return Subtarget.is64Bit() && SrcVT == MVT::i32 && DstVT == MVT::i64; in isSExtCheaperThanZExt()
2740 MVT DstVT = Op.getSimpleValueType(); in lowerFP_TO_INT_SAT() local
2745 if (!DstVT.isVector()) { in lowerFP_TO_INT_SAT()
2754 if (SatVT == DstVT) in lowerFP_TO_INT_SAT()
2756 else if (DstVT == MVT::i64 && SatVT == MVT::i32) in lowerFP_TO_INT_SAT()
2764 Opc, DL, DstVT, Src, in lowerFP_TO_INT_SAT()
2770 SDValue ZeroInt = DAG.getConstant(0, DL, DstVT); in lowerFP_TO_INT_SAT()
2777 MVT DstEltVT = DstVT.getVectorElementType(); in lowerFP_TO_INT_SAT()
2791 MVT DstContainerVT = DstVT; in lowerFP_TO_INT_SAT()
2793 if (DstVT.isFixedLengthVector()) { in lowerFP_TO_INT_SAT()
2794 DstContainerVT = getContainerForFixedLengthVector(DAG, DstVT, Subtarget); in lowerFP_TO_INT_SAT()
2804 auto [Mask, VL] = getDefaultVLOps(DstVT, DstContainerVT, DL, DAG, Subtarget); in lowerFP_TO_INT_SAT()
2828 if (DstVT.isFixedLengthVector()) in lowerFP_TO_INT_SAT()
2829 Res = convertFromScalableVector(DstVT, Res, DAG, Subtarget); in lowerFP_TO_INT_SAT()
5398 MVT DstVT = VT0.changeVectorElementTypeToInteger(); in LowerIS_FPCLASS() local
5404 SDValue FPCLASS = DAG.getNode(RISCVISD::FCLASS_VL, DL, DstVT, Op0, Mask, in LowerIS_FPCLASS()
5408 DAG.getConstant(TDCMask, DL, DstVT), in LowerIS_FPCLASS()
5410 SDValue AND = DAG.getNode(ISD::AND, DL, DstVT, FPCLASS, in LowerIS_FPCLASS()
5411 DAG.getConstant(TDCMask, DL, DstVT)); in LowerIS_FPCLASS()
5412 return DAG.getSetCC(DL, VT, AND, DAG.getConstant(0, DL, DstVT), in LowerIS_FPCLASS()
10633 MVT DstVT = Op.getSimpleValueType(); in lowerVPFPIntConvOp() local
10635 if (DstVT.isFixedLengthVector()) { in lowerVPFPIntConvOp()
10636 DstVT = getContainerForFixedLengthVector(DstVT); in lowerVPFPIntConvOp()
10639 MVT MaskVT = getMaskTypeFor(DstVT); in lowerVPFPIntConvOp()
10643 unsigned DstEltSize = DstVT.getScalarSizeInBits(); in lowerVPFPIntConvOp()
10649 assert(DstVT.isFloatingPoint() && "Wrong input/output vector types"); in lowerVPFPIntConvOp()
10657 MVT IntVT = DstVT.changeVectorElementTypeToInteger(); in lowerVPFPIntConvOp()
10671 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
10675 Result = DAG.getNode(RISCVISDOpc, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
10677 assert(SrcVT.isFloatingPoint() && DstVT.isInteger() && in lowerVPFPIntConvOp()
10684 MVT::getVectorVT(MVT::f32, DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
10689 Result = DAG.getNode(RISCVISDOpc, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
10693 assert(DstVT.isFloatingPoint() && "Wrong input/output vector types"); in lowerVPFPIntConvOp()
10697 MVT InterimFVT = DstVT; in lowerVPFPIntConvOp()
10700 assert(DstVT.getVectorElementType() == MVT::f16 && "Unexpected type!"); in lowerVPFPIntConvOp()
10701 InterimFVT = MVT::getVectorVT(MVT::f32, DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
10706 if (InterimFVT != DstVT) { in lowerVPFPIntConvOp()
10708 Result = DAG.getNode(RISCVISD::FP_ROUND_VL, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
10711 assert(SrcVT.isFloatingPoint() && DstVT.isInteger() && in lowerVPFPIntConvOp()
10721 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
10730 Result = DAG.getNode(RISCVISD::SETCC_VL, DL, DstVT, in lowerVPFPIntConvOp()
10732 DAG.getUNDEF(DstVT), Mask, VL}); in lowerVPFPIntConvOp()
10735 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
10739 while (InterimIVT != DstVT) { in lowerVPFPIntConvOp()
10743 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
13953 EVT DstVT = N->getValueType(0); in performFP_TO_INT_SATCombine() local
13954 if (DstVT != XLenVT) in performFP_TO_INT_SATCombine()
13980 if (SatVT == DstVT) in performFP_TO_INT_SATCombine()
13982 else if (DstVT == MVT::i64 && SatVT == MVT::i32) in performFP_TO_INT_SATCombine()
14001 SDValue ZeroInt = DAG.getConstant(0, DL, DstVT); in performFP_TO_INT_SATCombine()