Lines Matching refs:MVT
121 return CurDAG->getTargetConstant(bitPos, DL, MVT::i32); in XformMskToBitPosU5Imm()
147 return CurDAG->getTargetConstant(-Imm, DL, MVT::i32); in XformM5ToU5Imm()
154 return CurDAG->getTargetConstant(Imm - 1, DL, MVT::i8); in XformU7ToU7M1Imm()
159 return CurDAG->getTargetConstant(Imm - 1, DL, MVT::i32); in XformSToSM1Imm()
165 return CurDAG->getTargetConstant(Imm - 1, DL, MVT::i32); in XformUToUM1Imm()
170 return CurDAG->getTargetConstant(Imm - 2, DL, MVT::i32); in XformSToSM2Imm()
175 return CurDAG->getTargetConstant(Imm - 3, DL, MVT::i32); in XformSToSM3Imm()
265 SDValue TargetConst = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoadSignExtend64()
266 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, MVT::i32, in SelectIndexedLoadSignExtend64()
267 MVT::Other, Base, TargetConst, in SelectIndexedLoadSignExtend64()
269 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::A2_sxtw, dl, MVT::i64, in SelectIndexedLoadSignExtend64()
284 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectIndexedLoadSignExtend64()
285 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoadSignExtend64()
286 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, MVT::Other, in SelectIndexedLoadSignExtend64()
288 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::A2_sxtw, dl, MVT::i64, in SelectIndexedLoadSignExtend64()
290 SDNode* Result_3 = CurDAG->getMachineNode(Hexagon::A2_addi, dl, MVT::i32, in SelectIndexedLoadSignExtend64()
318 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoadZeroExtend64()
319 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectIndexedLoadZeroExtend64()
320 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, in SelectIndexedLoadZeroExtend64()
321 MVT::i32, MVT::Other, Base, in SelectIndexedLoadZeroExtend64()
324 MVT::i64, MVT::Other, in SelectIndexedLoadZeroExtend64()
341 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectIndexedLoadZeroExtend64()
342 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoadZeroExtend64()
343 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, in SelectIndexedLoadZeroExtend64()
344 MVT::Other, Base, TargetConst0, in SelectIndexedLoadZeroExtend64()
347 MVT::i64, MVT::Other, in SelectIndexedLoadZeroExtend64()
351 SDNode* Result_3 = CurDAG->getMachineNode(Hexagon::A2_addi, dl, MVT::i32, in SelectIndexedLoadZeroExtend64()
385 if (LoadedVT == MVT::i64) { in SelectIndexedLoad()
390 } else if (LoadedVT == MVT::i32) { in SelectIndexedLoad()
395 } else if (LoadedVT == MVT::i16) { in SelectIndexedLoad()
400 } else if (LoadedVT == MVT::i8) { in SelectIndexedLoad()
405 } else if (LoadedVT == MVT::v16i32 || LoadedVT == MVT::v8i64 || in SelectIndexedLoad()
406 LoadedVT == MVT::v32i16 || LoadedVT == MVT::v64i8) { in SelectIndexedLoad()
414 } else if (LoadedVT == MVT::v32i32 || LoadedVT == MVT::v16i64 || in SelectIndexedLoad()
415 LoadedVT == MVT::v64i16 || LoadedVT == MVT::v128i8) { in SelectIndexedLoad()
426 if (LD->getValueType(0) == MVT::i64 && IsZeroExt) in SelectIndexedLoad()
429 if (LD->getValueType(0) == MVT::i64 && ExtType == ISD::SEXTLOAD) in SelectIndexedLoad()
433 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoad()
436 MVT::i32, MVT::Other, Base, in SelectIndexedLoad()
462 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectIndexedLoad()
463 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedLoad()
466 MVT::Other, Base, TargetConst0, in SelectIndexedLoad()
468 SDNode* Result_2 = CurDAG->getMachineNode(Hexagon::A2_addi, dl, MVT::i32, in SelectIndexedLoad()
522 if (StoredVT == MVT::i64) Opcode = Hexagon::S2_storerd_pi; in SelectIndexedStore()
523 else if (StoredVT == MVT::i32) Opcode = Hexagon::S2_storeri_pi; in SelectIndexedStore()
524 else if (StoredVT == MVT::i16) Opcode = Hexagon::S2_storerh_pi; in SelectIndexedStore()
525 else if (StoredVT == MVT::i8) Opcode = Hexagon::S2_storerb_pi; in SelectIndexedStore()
526 else if (StoredVT == MVT::v16i32 || StoredVT == MVT::v8i64 || in SelectIndexedStore()
527 StoredVT == MVT::v32i16 || StoredVT == MVT::v64i8) { in SelectIndexedStore()
531 else if (StoredVT == MVT::v32i32 || StoredVT == MVT::v16i64 || in SelectIndexedStore()
532 StoredVT == MVT::v64i16 || StoredVT == MVT::v128i8) { in SelectIndexedStore()
539 dl, MVT::i32, Value); in SelectIndexedStore()
541 SDValue Ops[] = {Base, CurDAG->getTargetConstant(Val, dl, MVT::i32), Value, in SelectIndexedStore()
544 SDNode* Result = CurDAG->getMachineNode(Opcode, dl, MVT::i32, in SelectIndexedStore()
545 MVT::Other, Ops); in SelectIndexedStore()
559 SDValue Ops[] = { Base, CurDAG->getTargetConstant(0, dl, MVT::i32), Value, in SelectIndexedStore()
564 if (StoredVT == MVT::i64) Opcode = Hexagon::S2_storerd_io; in SelectIndexedStore()
565 else if (StoredVT == MVT::i32) Opcode = Hexagon::S2_storeri_io; in SelectIndexedStore()
566 else if (StoredVT == MVT::i16) Opcode = Hexagon::S2_storerh_io; in SelectIndexedStore()
567 else if (StoredVT == MVT::i8) Opcode = Hexagon::S2_storerb_io; in SelectIndexedStore()
568 else if (StoredVT == MVT::v16i32 || StoredVT == MVT::v8i64 || in SelectIndexedStore()
569 StoredVT == MVT::v32i16 || StoredVT == MVT::v64i8) in SelectIndexedStore()
572 else if (StoredVT == MVT::v32i32 || StoredVT == MVT::v16i64 || in SelectIndexedStore()
573 StoredVT == MVT::v64i16 || StoredVT == MVT::v128i8) in SelectIndexedStore()
578 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, dl, MVT::i32); in SelectIndexedStore()
579 SDNode* Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::Other, Ops); in SelectIndexedStore()
581 SDNode* Result_2 = CurDAG->getMachineNode(Hexagon::A2_addi, dl, MVT::i32, in SelectIndexedStore()
620 if (N->getValueType(0) == MVT::i64) { in SelectMul()
631 if (Sext0.getNode()->getValueType(0) != MVT::i32) { in SelectMul()
638 if (LD->getMemoryVT() != MVT::i32 || in SelectMul()
645 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectMul()
646 OP0 = SDValue(CurDAG->getMachineNode(Hexagon::L2_loadri_io, dl, MVT::i32, in SelectMul()
647 MVT::Other, in SelectMul()
657 if (Sext1.getNode()->getValueType(0) != MVT::i32) { in SelectMul()
664 if (LD->getMemoryVT() != MVT::i32 || in SelectMul()
671 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectMul()
672 OP1 = SDValue(CurDAG->getMachineNode(Hexagon::L2_loadri_io, dl, MVT::i32, in SelectMul()
673 MVT::Other, in SelectMul()
681 SDNode *Result = CurDAG->getMachineNode(Hexagon::M2_dpmpyss_s0, dl, MVT::i64, in SelectMul()
692 if (N->getValueType(0) == MVT::i32) { in SelectSHL()
708 MVT::i32); in SelectSHL()
713 MVT::i32, Mul_0, Val); in SelectSHL()
736 MVT::i32); in SelectSHL()
741 CurDAG->getMachineNode(Hexagon::M2_mpysmi, dl, MVT::i32, in SelectSHL()
775 if (OpVT.isVector() && OpVT.getVectorElementType() == MVT::i1 && OpBW <= 64) { in SelectZeroExtend()
776 SDNode *Mask = CurDAG->getMachineNode(Hexagon::C2_mask, dl, MVT::i64, Op0); in SelectZeroExtend()
785 SDValue Ones = CurDAG->getTargetConstant(MV, dl, MVT::i64); in SelectZeroExtend()
787 MVT::i64, Ones); in SelectZeroExtend()
789 SDNode *And = CurDAG->getMachineNode(Hexagon::A2_andp, dl, MVT::i64, in SelectZeroExtend()
792 MVT::i32); in SelectZeroExtend()
806 if (N->getValueType(0) == MVT::i64) { in SelectZeroExtend()
808 SDValue TargetConst0 = CurDAG->getTargetConstant(0, dl, MVT::i32); in SelectZeroExtend()
810 MVT::i32, in SelectZeroExtend()
813 MVT::i32, in SelectZeroExtend()
816 MVT::i64, MVT::Other, in SelectZeroExtend()
822 if (N->getValueType(0) == MVT::i32) { in SelectZeroExtend()
825 MVT::i32, in SelectZeroExtend()
862 MVT MvtSize = MVT::i32; in SelectIntrinsicWChain()
865 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
866 ResTys.push_back(MVT::i64); in SelectIntrinsicWChain()
871 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
872 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
877 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
878 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
882 MvtSize = MVT::i16; in SelectIntrinsicWChain()
884 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
885 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
889 MvtSize = MVT::i16; in SelectIntrinsicWChain()
891 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
892 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
896 MvtSize = MVT::i8; in SelectIntrinsicWChain()
898 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
899 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
903 MvtSize = MVT::i8; in SelectIntrinsicWChain()
907 ResTys.push_back(MVT::Other); in SelectIntrinsicWChain()
915 Ops.push_back(CurDAG->getTargetConstant(Val, dl, MVT::i32)); in SelectIntrinsicWChain()
923 if (MvtSize != MVT::i32) in SelectIntrinsicWChain()
956 MVT MvtSize = MVT::i32; in SelectIntrinsicWChain()
959 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
960 ResTys.push_back(MVT::i64); in SelectIntrinsicWChain()
965 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
966 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
971 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
972 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
976 MvtSize = MVT::i16; in SelectIntrinsicWChain()
978 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
979 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
983 MvtSize = MVT::i16; in SelectIntrinsicWChain()
985 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
986 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
990 MvtSize = MVT::i8; in SelectIntrinsicWChain()
992 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
993 ResTys.push_back(MVT::i32); in SelectIntrinsicWChain()
997 MvtSize = MVT::i8; in SelectIntrinsicWChain()
1001 ResTys.push_back(MVT::Other); in SelectIntrinsicWChain()
1014 if (MvtSize != MVT::i32) in SelectIntrinsicWChain()
1068 if (N->getValueType(0) == MVT::f32) { in SelectConstantFP()
1069 return CurDAG->getMachineNode(Hexagon::TFRI_f, dl, MVT::f32, in SelectConstantFP()
1070 CurDAG->getTargetConstantFP(APF.convertToFloat(), dl, MVT::f32)); in SelectConstantFP()
1072 else if (N->getValueType(0) == MVT::f64) { in SelectConstantFP()
1073 return CurDAG->getMachineNode(Hexagon::CONST64_Float_Real, dl, MVT::f64, in SelectConstantFP()
1074 CurDAG->getTargetConstantFP(APF.convertToDouble(), dl, MVT::f64)); in SelectConstantFP()
1085 if (N->getValueType(0) == MVT::i1) { in SelectConstant()
1089 Result = CurDAG->getMachineNode(Hexagon::TFR_PdTrue, dl, MVT::i1); in SelectConstant()
1091 Result = CurDAG->getMachineNode(Hexagon::TFR_PdFalse, dl, MVT::i1); in SelectConstant()
1108 if (N->getValueType(0) != MVT::i32) { in SelectAdd()
1114 || Src1->getValueType(0) != MVT::i32) { in SelectAdd()
1120 SDNode* Result = CurDAG->getMachineNode(Hexagon::S2_asr_r_r_acc, dl, MVT::i32, in SelectAdd()
1140 if (!(ValueVT == MVT::i32 || ValueVT == MVT::i64 || in SelectBitOp()
1141 ValueVT == MVT::f32 || ValueVT == MVT::f64)) in SelectBitOp()
1159 if ((ValueVT == MVT::i32 && isPowerOf2_32(~Val)) || in SelectBitOp()
1160 (ValueVT == MVT::i64 && isPowerOf2_64(~Val))) in SelectBitOp()
1183 if ((ValueVT == MVT::i32 && !isPowerOf2_32(Val)) || in SelectBitOp()
1184 (ValueVT == MVT::i64 && !isPowerOf2_64(Val))) in SelectBitOp()
1214 SDValue SDVal = CurDAG->getTargetConstant(BitPos, dl, MVT::i32); in SelectBitOp()
1216 if (ValueVT == MVT::i32 || ValueVT == MVT::f32) { in SelectBitOp()
1222 if (ValueVT == MVT::i64) in SelectBitOp()
1223 SubValueVT = MVT::i32; in SelectBitOp()
1225 SubValueVT = MVT::f32; in SelectBitOp()
1229 dl, MVT::i64); in SelectBitOp()
1232 MVT::i32); in SelectBitOp()
1234 MVT::i32); in SelectBitOp()
1237 MVT::i32, SDValue(Reg, 0)); in SelectBitOp()
1240 MVT::i32, SDValue(Reg, 0)); in SelectBitOp()
1243 if (SubValueVT != MVT::f32 && BitPos < 32) { in SelectBitOp()
1252 SDVal = CurDAG->getTargetConstant(BitPos-32, dl, MVT::i32); in SelectBitOp()
1273 SDValue FI = CurDAG->getTargetFrameIndex(FX, MVT::i32); in SelectFrameIndex()
1275 SDValue Zero = CurDAG->getTargetConstant(0, DL, MVT::i32); in SelectFrameIndex()
1284 R = CurDAG->getMachineNode(Hexagon::TFR_FI, DL, MVT::i32, FI, Zero); in SelectFrameIndex()
1289 SDValue Ops[] = { CurDAG->getCopyFromReg(CH, DL, AR, MVT::i32), FI, Zero }; in SelectFrameIndex()
1290 R = CurDAG->getMachineNode(Hexagon::TFR_FIA, DL, MVT::i32, Ops); in SelectFrameIndex()
1369 OutOps.push_back(CurDAG->getTargetConstant(0, SDLoc(Op), MVT::i32)); in SelectInlineAsmMemoryOperand()
1430 unsigned AR = FuncInfo->CreateReg(MVT::i32); in EmitFunctionEntryCode()
1446 R = CurDAG->getTargetFrameIndex(FX, MVT::i32); in SelectAddrFI()