Lines Matching refs:MVT
122 return CurDAG->getTargetConstant(bitPos, MVT::i32);
150 return CurDAG->getTargetConstant( - Imm, MVT::i32);
158 return CurDAG->getTargetConstant(Imm - 1, MVT::i8);
163 return CurDAG->getTargetConstant(Imm - 1, MVT::i32);
169 return CurDAG->getTargetConstant(Imm - 1, MVT::i32);
365 if (MemType == MVT::i64 && isShiftedInt<11,3>(Offset)) {
368 if (MemType == MVT::i32 && isShiftedInt<11,2>(Offset)) {
371 if (MemType == MVT::i16 && isShiftedInt<11,1>(Offset)) {
374 if (MemType == MVT::i8 && isInt<11>(Offset)) {
397 MVT PointerTy = getTargetLowering()->getPointerTy();
406 if (LoadedVT == MVT::i64) Opcode = Hexagon::LDrid_indexed;
407 else if (LoadedVT == MVT::i32) Opcode = Hexagon::LDriw_indexed;
408 else if (LoadedVT == MVT::i16) Opcode = Hexagon::LDrih_indexed;
409 else if (LoadedVT == MVT::i8) Opcode = Hexagon::LDrib_indexed;
416 MVT::Other,
447 N1.getNode()->getValueType(0) == MVT::i32) {
451 SDValue TargetConst = CurDAG->getTargetConstant(Val, MVT::i32);
452 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32, MVT::i32,
453 MVT::Other, Base, TargetConst,
455 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::SXTW, dl, MVT::i64,
471 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
472 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
473 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32,
474 MVT::Other, Base, TargetConst0,
477 MVT::i64, SDValue(Result_1, 0));
479 MVT::i32, Base, TargetConstVal,
514 N1.getNode()->getValueType(0) == MVT::i32) {
518 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
519 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
520 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32,
521 MVT::i32, MVT::Other, Base,
523 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::TFRI, dl, MVT::i32,
526 MVT::i64, MVT::Other,
545 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
546 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
547 SDNode *Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::i32,
548 MVT::Other,
550 SDNode *Result_2 = CurDAG->getMachineNode(Hexagon::TFRI, dl, MVT::i32,
553 MVT::i64, MVT::Other,
557 SDNode* Result_4 = CurDAG->getMachineNode(Hexagon::ADD_ri, dl, MVT::i32,
595 if (LoadedVT == MVT::i64) {
600 } else if (LoadedVT == MVT::i32) {
605 } else if (LoadedVT == MVT::i16) {
610 } else if (LoadedVT == MVT::i8) {
619 if (LD->getValueType(0) == MVT::i64 &&
623 if (LD->getValueType(0) == MVT::i64 &&
629 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
632 MVT::i32, MVT::Other, Base,
648 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
649 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
652 MVT::Other, Base, TargetConst0,
654 SDNode* Result_2 = CurDAG->getMachineNode(Hexagon::ADD_ri, dl, MVT::i32,
706 SDValue Ops[] = {Base, CurDAG->getTargetConstant(Val, MVT::i32), Value,
711 if (StoredVT == MVT::i64) Opcode = Hexagon::POST_STdri;
712 else if (StoredVT == MVT::i32) Opcode = Hexagon::POST_STwri;
713 else if (StoredVT == MVT::i16) Opcode = Hexagon::POST_SThri;
714 else if (StoredVT == MVT::i8) Opcode = Hexagon::POST_STbri;
718 SDNode* Result = CurDAG->getMachineNode(Opcode, dl, MVT::i32,
719 MVT::Other, Ops);
732 SDValue Ops[] = { Base, CurDAG->getTargetConstant(0, MVT::i32), Value,
737 if (StoredVT == MVT::i64) Opcode = Hexagon::STrid;
738 else if (StoredVT == MVT::i32) Opcode = Hexagon::STriw_indexed;
739 else if (StoredVT == MVT::i16) Opcode = Hexagon::STrih;
740 else if (StoredVT == MVT::i8) Opcode = Hexagon::STrib;
744 SDValue TargetConstVal = CurDAG->getTargetConstant(Val, MVT::i32);
745 SDNode* Result_1 = CurDAG->getMachineNode(Opcode, dl, MVT::Other, Ops);
747 SDNode* Result_2 = CurDAG->getMachineNode(Hexagon::ADD_ri, dl, MVT::i32,
774 !(Value.getValueType() == MVT::i64 && ST->isTruncatingStore())) {
780 MVT PointerTy = getTargetLowering()->getPointerTy();
790 if (StoredVT == MVT::i64) Opcode = Hexagon::STrid_indexed;
791 else if (StoredVT == MVT::i32) Opcode = Hexagon::STriw_indexed;
792 else if (StoredVT == MVT::i16) Opcode = Hexagon::STrih_indexed;
793 else if (StoredVT == MVT::i8) Opcode = Hexagon::STrib_indexed;
801 MVT::Other, Ops);
841 if (N->getValueType(0) == MVT::i64) {
852 if (Sext0.getNode()->getValueType(0) != MVT::i32) {
859 if (LD->getMemoryVT() != MVT::i32 ||
866 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
867 OP0 = SDValue (CurDAG->getMachineNode(Hexagon::LDriw, dl, MVT::i32,
868 MVT::Other,
878 if (Sext1.getNode()->getValueType(0) != MVT::i32) {
885 if (LD->getMemoryVT() != MVT::i32 ||
892 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
893 OP1 = SDValue (CurDAG->getMachineNode(Hexagon::LDriw, dl, MVT::i32,
894 MVT::Other,
902 SDNode *Result = CurDAG->getMachineNode(Hexagon::MPY64, dl, MVT::i64,
920 if (cast<VTSDNode>(N001)->getVT() == MVT::i16) {
934 N0.getNode()->getValueType(N0.getResNo()) == MVT::i1 &&
935 N00.getNode()->getValueType(N00.getResNo()) == MVT::i32) {
937 MVT::i32, N000);
939 MVT::i32,
958 N0.getNode()->getValueType(N0.getResNo()) == MVT::i1 &&
959 N00.getNode()->getValueType(N00.getResNo()) == MVT::i32) {
961 MVT::i32, N000);
963 MVT::i32,
995 if (N->getValueType(0) == MVT::i32) {
997 if (Shift.getNode()->getValueType(0) == MVT::i64) {
1032 if (Sext0.getNode()->getValueType(0) != MVT::i32) {
1039 if (LD->getMemoryVT() != MVT::i32 ||
1046 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
1047 OP0 = SDValue (CurDAG->getMachineNode(Hexagon::LDriw, dl, MVT::i32,
1048 MVT::Other,
1058 if (Sext1.getNode()->getValueType(0) != MVT::i32)
1064 if (LD->getMemoryVT() != MVT::i32 ||
1071 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
1072 OP1 = SDValue (CurDAG->getMachineNode(Hexagon::LDriw, dl, MVT::i32,
1073 MVT::Other,
1081 SDNode *Result = CurDAG->getMachineNode(Hexagon::MPY, dl, MVT::i32,
1094 if (N->getValueType(0) == MVT::i32) {
1110 MVT::i32);
1115 MVT::i32, Mul_0, Val);
1137 SDValue Val = CurDAG->getTargetConstant(-ValConst, MVT::i32);
1142 CurDAG->getMachineNode(Hexagon::MPYI_ri, dl, MVT::i32,
1176 if (N->getValueType(0) == MVT::i64) {
1178 SDValue TargetConst0 = CurDAG->getTargetConstant(0, MVT::i32);
1180 MVT::i32,
1183 MVT::i32,
1186 MVT::i64, MVT::Other,
1192 if (N->getValueType(0) == MVT::i32) {
1195 MVT::i32,
1238 SDNode *PdRs = CurDAG->getMachineNode(Hexagon::TFR_PdRs, dl, MVT::i1,
1245 SDValue SDVal = CurDAG->getTargetConstant(Val, MVT::i32);
1267 if (N->getValueType(0) == MVT::f32) {
1268 return CurDAG->getMachineNode(Hexagon::TFRI_f, dl, MVT::f32,
1269 CurDAG->getTargetConstantFP(APF.convertToFloat(), MVT::f32));
1271 else if (N->getValueType(0) == MVT::f64) {
1272 return CurDAG->getMachineNode(Hexagon::CONST64_Float_Real, dl, MVT::f64,
1273 CurDAG->getTargetConstantFP(APF.convertToDouble(), MVT::f64));
1285 if (N->getValueType(0) == MVT::i1) {
1291 CurDAG->getMachineNode(Hexagon::TFRI, dl, MVT::i32,
1292 CurDAG->getTargetConstant(0, MVT::i32));
1295 SDNode* Pd = CurDAG->getMachineNode(Hexagon::TFR_PdRs, dl, MVT
1299 SDNode* NotPd = CurDAG->getMachineNode(Hexagon::NOT_p, dl, MVT::i1,
1303 Result = CurDAG->getMachineNode(Hexagon::XOR_pp, dl, MVT::i1,
1324 if (N->getValueType(0) != MVT::i32) {
1330 || Src1->getValueType(0) != MVT::i32) {
1336 SDNode* Result = CurDAG->getMachineNode(Hexagon::ASR_ADD_rr, dl, MVT::i32,
1401 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1402 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1406 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1418 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1419 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1423 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1435 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1436 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1440 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1452 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1453 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1457 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1469 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1470 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1474 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1486 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1487 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1491 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1503 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1504 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1508 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1531 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1532 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1536 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1571 Base = CurDAG->getTargetFrameIndex(FIN->getIndex(), MVT::i32);
1572 Offset = CurDAG->getTargetConstant(0, MVT::i32);
1583 Offset = CurDAG->getTargetConstant(0, MVT::i32);