Lines Matching refs:RHSC
634 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
636 RHSC = -RHSC; in SelectAddrModeImm12()
638 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
645 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
664 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
665 if (RHSC & 1) { in SelectLdStSOReg()
666 RHSC = RHSC & ~1; in SelectLdStSOReg()
668 if (RHSC < 0) { in SelectLdStSOReg()
670 RHSC = - RHSC; in SelectLdStSOReg()
672 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
673 unsigned ShAmt = Log2_32(RHSC); in SelectLdStSOReg()
691 int RHSC; in SelectLdStSOReg() local
693 -0x1000+1, 0x1000, RHSC)) // 12 bits. in SelectLdStSOReg()
775 int RHSC = (int)RHS->getZExtValue(); in SelectAddrMode2Worker() local
776 if (RHSC & 1) { in SelectAddrMode2Worker()
777 RHSC = RHSC & ~1; in SelectAddrMode2Worker()
779 if (RHSC < 0) { in SelectAddrMode2Worker()
781 RHSC = - RHSC; in SelectAddrMode2Worker()
783 if (isPowerOf2_32(RHSC)) { in SelectAddrMode2Worker()
784 unsigned ShAmt = Log2_32(RHSC); in SelectAddrMode2Worker()
816 int RHSC; in SelectAddrMode2Worker() local
818 -0x1000+1, 0x1000, RHSC)) { // 12 bits. in SelectAddrMode2Worker()
828 if (RHSC < 0) { in SelectAddrMode2Worker()
830 RHSC = - RHSC; in SelectAddrMode2Worker()
832 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC, in SelectAddrMode2Worker()
1011 int RHSC; in SelectAddrMode3() local
1013 -256 + 1, 256, RHSC)) { // 8 bits. in SelectAddrMode3()
1023 if (RHSC < 0) { in SelectAddrMode3()
1025 RHSC = -RHSC; in SelectAddrMode3()
1027 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC), SDLoc(N), in SelectAddrMode3()
1079 int RHSC; in SelectAddrMode5() local
1081 -256 + 1, 256, RHSC)) { in SelectAddrMode5()
1090 if (RHSC < 0) { in SelectAddrMode5()
1092 RHSC = -RHSC; in SelectAddrMode5()
1094 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC), in SelectAddrMode5()
1200 int RHSC; in SelectThumbAddrModeImm5S() local
1201 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC)) { in SelectThumbAddrModeImm5S()
1203 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectThumbAddrModeImm5S()
1251 int RHSC; in SelectThumbAddrModeSP() local
1252 if (isScaledConstantInRange(N.getOperand(1), /*Scale=*/4, 0, 256, RHSC)) { in SelectThumbAddrModeSP()
1264 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectThumbAddrModeSP()
1310 int RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeImm12() local
1312 RHSC = -RHSC; in SelectT2AddrModeImm12()
1314 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned) in SelectT2AddrModeImm12()
1321 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm12()
1340 int RHSC = (int)RHS->getSExtValue(); in SelectT2AddrModeImm8() local
1342 RHSC = -RHSC; in SelectT2AddrModeImm8()
1344 if ((RHSC >= -255) && (RHSC < 0)) { // 8 bits (always negative) in SelectT2AddrModeImm8()
1351 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm8()
1365 int RHSC; in SelectT2AddrModeImm8Offset() local
1366 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x100, RHSC)) { // 8 bits. in SelectT2AddrModeImm8Offset()
1368 ? CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32) in SelectT2AddrModeImm8Offset()
1369 : CurDAG->getTargetConstant(-RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm8Offset()
1385 int RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeSoReg() local
1386 if (RHSC >= 0 && RHSC < 0x1000) // 12 bits (unsigned) in SelectT2AddrModeSoReg()
1388 else if (RHSC < 0 && RHSC >= -255) // 8 bits in SelectT2AddrModeSoReg()
1448 uint32_t RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeExclusive() local
1449 if (RHSC > 1020 || RHSC % 4 != 0) in SelectT2AddrModeExclusive()
1459 OffImm = CurDAG->getTargetConstant(RHSC/4, SDLoc(N), MVT::i32); in SelectT2AddrModeExclusive()