Lines Matching refs:RHSC
627 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
629 RHSC = -RHSC; in SelectAddrModeImm12()
631 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
638 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
657 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
658 if (RHSC & 1) { in SelectLdStSOReg()
659 RHSC = RHSC & ~1; in SelectLdStSOReg()
661 if (RHSC < 0) { in SelectLdStSOReg()
663 RHSC = - RHSC; in SelectLdStSOReg()
665 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
666 unsigned ShAmt = Log2_32(RHSC); in SelectLdStSOReg()
684 int RHSC; in SelectLdStSOReg() local
686 -0x1000+1, 0x1000, RHSC)) // 12 bits. in SelectLdStSOReg()
768 int RHSC = (int)RHS->getZExtValue(); in SelectAddrMode2Worker() local
769 if (RHSC & 1) { in SelectAddrMode2Worker()
770 RHSC = RHSC & ~1; in SelectAddrMode2Worker()
772 if (RHSC < 0) { in SelectAddrMode2Worker()
774 RHSC = - RHSC; in SelectAddrMode2Worker()
776 if (isPowerOf2_32(RHSC)) { in SelectAddrMode2Worker()
777 unsigned ShAmt = Log2_32(RHSC); in SelectAddrMode2Worker()
811 int RHSC; in SelectAddrMode2Worker() local
813 -0x1000+1, 0x1000, RHSC)) { // 12 bits. in SelectAddrMode2Worker()
823 if (RHSC < 0) { in SelectAddrMode2Worker()
825 RHSC = - RHSC; in SelectAddrMode2Worker()
827 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC, in SelectAddrMode2Worker()
1006 int RHSC; in SelectAddrMode3() local
1008 -256 + 1, 256, RHSC)) { // 8 bits. in SelectAddrMode3()
1018 if (RHSC < 0) { in SelectAddrMode3()
1020 RHSC = -RHSC; in SelectAddrMode3()
1022 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC), SDLoc(N), in SelectAddrMode3()
1076 int RHSC; in SelectAddrMode5() local
1078 -256 + 1, 256, RHSC)) { in SelectAddrMode5()
1087 if (RHSC < 0) { in SelectAddrMode5()
1089 RHSC = -RHSC; in SelectAddrMode5()
1091 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC), in SelectAddrMode5()
1199 int RHSC; in SelectThumbAddrModeImm5S() local
1200 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC)) { in SelectThumbAddrModeImm5S()
1202 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectThumbAddrModeImm5S()
1250 int RHSC; in SelectThumbAddrModeSP() local
1251 if (isScaledConstantInRange(N.getOperand(1), /*Scale=*/4, 0, 256, RHSC)) { in SelectThumbAddrModeSP()
1263 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectThumbAddrModeSP()
1311 int RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeImm12() local
1313 RHSC = -RHSC; in SelectT2AddrModeImm12()
1315 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned) in SelectT2AddrModeImm12()
1322 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm12()
1341 int RHSC = (int)RHS->getSExtValue(); in SelectT2AddrModeImm8() local
1343 RHSC = -RHSC; in SelectT2AddrModeImm8()
1345 if ((RHSC >= -255) && (RHSC < 0)) { // 8 bits (always negative) in SelectT2AddrModeImm8()
1352 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm8()
1366 int RHSC; in SelectT2AddrModeImm8Offset() local
1367 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x100, RHSC)) { // 8 bits. in SelectT2AddrModeImm8Offset()
1369 ? CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32) in SelectT2AddrModeImm8Offset()
1370 : CurDAG->getTargetConstant(-RHSC, SDLoc(N), MVT::i32); in SelectT2AddrModeImm8Offset()
1386 int RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeSoReg() local
1387 if (RHSC >= 0 && RHSC < 0x1000) // 12 bits (unsigned) in SelectT2AddrModeSoReg()
1389 else if (RHSC < 0 && RHSC >= -255) // 8 bits in SelectT2AddrModeSoReg()
1449 uint32_t RHSC = (int)RHS->getZExtValue(); in SelectT2AddrModeExclusive() local
1450 if (RHSC > 1020 || RHSC % 4 != 0) in SelectT2AddrModeExclusive()
1460 OffImm = CurDAG->getTargetConstant(RHSC/4, SDLoc(N), MVT::i32); in SelectT2AddrModeExclusive()