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