Lines Matching refs:DstVT
1888 bool RISCVTargetLowering::isTruncateFree(EVT SrcVT, EVT DstVT) const { in isTruncateFree()
1891 if (SrcVT.isVector() || DstVT.isVector() || !SrcVT.isInteger() || in isTruncateFree()
1892 !DstVT.isInteger()) in isTruncateFree()
1895 unsigned DestBits = DstVT.getSizeInBits(); in isTruncateFree()
1929 bool RISCVTargetLowering::isSExtCheaperThanZExt(EVT SrcVT, EVT DstVT) const { in isSExtCheaperThanZExt()
1930 return Subtarget.is64Bit() && SrcVT == MVT::i32 && DstVT == MVT::i64; in isSExtCheaperThanZExt()
2912 MVT DstVT = Op.getSimpleValueType(); in lowerFP_TO_INT_SAT() local
2917 if (!DstVT.isVector()) { in lowerFP_TO_INT_SAT()
2926 if (SatVT == DstVT) in lowerFP_TO_INT_SAT()
2928 else if (DstVT == MVT::i64 && SatVT == MVT::i32) in lowerFP_TO_INT_SAT()
2936 Opc, DL, DstVT, Src, in lowerFP_TO_INT_SAT()
2942 SDValue ZeroInt = DAG.getConstant(0, DL, DstVT); in lowerFP_TO_INT_SAT()
2949 MVT DstEltVT = DstVT.getVectorElementType(); in lowerFP_TO_INT_SAT()
2963 MVT DstContainerVT = DstVT; in lowerFP_TO_INT_SAT()
2965 if (DstVT.isFixedLengthVector()) { in lowerFP_TO_INT_SAT()
2966 DstContainerVT = getContainerForFixedLengthVector(DAG, DstVT, Subtarget); in lowerFP_TO_INT_SAT()
2976 auto [Mask, VL] = getDefaultVLOps(DstVT, DstContainerVT, DL, DAG, Subtarget); in lowerFP_TO_INT_SAT()
3000 if (DstVT.isFixedLengthVector()) in lowerFP_TO_INT_SAT()
3001 Res = convertFromScalableVector(DstVT, Res, DAG, Subtarget); in lowerFP_TO_INT_SAT()
5795 MVT DstVT = VT0.changeVectorElementTypeToInteger(); in LowerIS_FPCLASS() local
5801 SDValue FPCLASS = DAG.getNode(RISCVISD::FCLASS_VL, DL, DstVT, Op0, Mask, in LowerIS_FPCLASS()
5805 DAG.getConstant(TDCMask, DL, DstVT), in LowerIS_FPCLASS()
5807 SDValue AND = DAG.getNode(ISD::AND, DL, DstVT, FPCLASS, in LowerIS_FPCLASS()
5808 DAG.getConstant(TDCMask, DL, DstVT)); in LowerIS_FPCLASS()
5809 return DAG.getSetCC(DL, VT, AND, DAG.getConstant(0, DL, DstVT), in LowerIS_FPCLASS()
11414 MVT DstVT = Op.getSimpleValueType(); in lowerVPFPIntConvOp() local
11416 if (DstVT.isFixedLengthVector()) { in lowerVPFPIntConvOp()
11417 DstVT = getContainerForFixedLengthVector(DstVT); in lowerVPFPIntConvOp()
11420 MVT MaskVT = getMaskTypeFor(DstVT); in lowerVPFPIntConvOp()
11424 unsigned DstEltSize = DstVT.getScalarSizeInBits(); in lowerVPFPIntConvOp()
11430 assert(DstVT.isFloatingPoint() && "Wrong input/output vector types"); in lowerVPFPIntConvOp()
11438 MVT IntVT = DstVT.changeVectorElementTypeToInteger(); in lowerVPFPIntConvOp()
11452 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
11456 Result = DAG.getNode(RISCVISDOpc, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
11458 assert(SrcVT.isFloatingPoint() && DstVT.isInteger() && in lowerVPFPIntConvOp()
11465 MVT::getVectorVT(MVT::f32, DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
11470 Result = DAG.getNode(RISCVISDOpc, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
11474 assert(DstVT.isFloatingPoint() && "Wrong input/output vector types"); in lowerVPFPIntConvOp()
11478 MVT InterimFVT = DstVT; in lowerVPFPIntConvOp()
11481 assert(DstVT.getVectorElementType() == MVT::f16 && "Unexpected type!"); in lowerVPFPIntConvOp()
11482 InterimFVT = MVT::getVectorVT(MVT::f32, DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
11487 if (InterimFVT != DstVT) { in lowerVPFPIntConvOp()
11489 Result = DAG.getNode(RISCVISD::FP_ROUND_VL, DL, DstVT, Src, Mask, VL); in lowerVPFPIntConvOp()
11492 assert(SrcVT.isFloatingPoint() && DstVT.isInteger() && in lowerVPFPIntConvOp()
11502 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
11511 Result = DAG.getNode(RISCVISD::SETCC_VL, DL, DstVT, in lowerVPFPIntConvOp()
11513 DAG.getUNDEF(DstVT), Mask, VL}); in lowerVPFPIntConvOp()
11516 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
11520 while (InterimIVT != DstVT) { in lowerVPFPIntConvOp()
11524 DstVT.getVectorElementCount()); in lowerVPFPIntConvOp()
15396 EVT DstVT = N->getValueType(0); in performFP_TO_INT_SATCombine() local
15397 if (DstVT != XLenVT) in performFP_TO_INT_SATCombine()
15423 if (SatVT == DstVT) in performFP_TO_INT_SATCombine()
15425 else if (DstVT == MVT::i64 && SatVT == MVT::i32) in performFP_TO_INT_SATCombine()
15444 SDValue ZeroInt = DAG.getConstant(0, DL, DstVT); in performFP_TO_INT_SATCombine()