Lines Matching defs:RHSC

552     int RHSC = (int)RHS->getZExtValue();
554 RHSC = -RHSC;
556 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned)
562 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
581 int RHSC = (int)RHS->getZExtValue();
582 if (RHSC & 1) {
583 RHSC = RHSC & ~1;
585 if (RHSC < 0) {
587 RHSC = - RHSC;
589 if (isPowerOf2_32(RHSC)) {
590 unsigned ShAmt = Log2_32(RHSC);
608 int RHSC;
610 -0x1000+1, 0x1000, RHSC)) // 12 bits.
680 int RHSC = (int)RHS->getZExtValue();
681 if (RHSC & 1) {
682 RHSC = RHSC & ~1;
684 if (RHSC < 0) {
686 RHSC = - RHSC;
688 if (isPowerOf2_32(RHSC)) {
689 unsigned ShAmt = Log2_32(RHSC);
721 int RHSC;
723 -0x1000+1, 0x1000, RHSC)) { // 12 bits.
732 if (RHSC < 0) {
734 RHSC = - RHSC;
736 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC,
912 int RHSC;
914 -256 + 1, 256, RHSC)) { // 8 bits.
923 if (RHSC < 0) {
925 RHSC = -RHSC;
927 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC),MVT::i32);
975 int RHSC;
977 -256 + 1, 256, RHSC)) {
985 if (RHSC < 0) {
987 RHSC = -RHSC;
989 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC),
1097 int RHSC;
1098 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC))
1160 unsigned RHSC = RHS ? RHS->getZExtValue() : 0;
1163 if (LHSC != 0 || RHSC != 0) return false;
1171 int RHSC;
1172 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC)) {
1174 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1217 int RHSC;
1218 if (isScaledConstantInRange(N.getOperand(1), /*Scale=*/4, 0, 256, RHSC)) {
1224 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1292 int RHSC = (int)RHS->getZExtValue();
1294 RHSC = -RHSC;
1296 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned)
1302 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1321 int RHSC = (int)RHS->getSExtValue();
1323 RHSC = -RHSC;
1325 if ((RHSC >= -255) && (RHSC < 0)) { // 8 bits (always negative)
1331 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1345 int RHSC;
1346 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x100, RHSC)) { // 8 bits.
1348 ? CurDAG->getTargetConstant(RHSC, MVT::i32)
1349 : CurDAG->getTargetConstant(-RHSC, MVT::i32);
1365 int RHSC = (int)RHS->getZExtValue();
1366 if (RHSC >= 0 && RHSC < 0x1000) // 12 bits (unsigned)
1368 else if (RHSC < 0 && RHSC >= -255) // 8 bits