Lines Matching refs:RHSC
555 int RHSC = (int)RHS->getZExtValue();
557 RHSC = -RHSC;
559 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned)
566 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
585 int RHSC = (int)RHS->getZExtValue();
586 if (RHSC & 1) {
587 RHSC = RHSC & ~1;
589 if (RHSC < 0) {
591 RHSC = - RHSC;
593 if (isPowerOf2_32(RHSC)) {
594 unsigned ShAmt = Log2_32(RHSC);
612 int RHSC;
614 -0x1000+1, 0x1000, RHSC)) // 12 bits.
684 int RHSC = (int)RHS->getZExtValue();
685 if (RHSC & 1) {
686 RHSC = RHSC & ~1;
688 if (RHSC < 0) {
690 RHSC = - RHSC;
692 if (isPowerOf2_32(RHSC)) {
693 unsigned ShAmt = Log2_32(RHSC);
726 int RHSC;
728 -0x1000+1, 0x1000, RHSC)) { // 12 bits.
738 if (RHSC < 0) {
740 RHSC = - RHSC;
742 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC,
919 int RHSC;
921 -256 + 1, 256, RHSC)) { // 8 bits.
931 if (RHSC < 0) {
933 RHSC = -RHSC;
935 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC),MVT::i32);
984 int RHSC;
986 -256 + 1, 256, RHSC)) {
995 if (RHSC < 0) {
997 RHSC = -RHSC;
999 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC),
1107 int RHSC;
1108 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC))
1170 unsigned RHSC = RHS ? RHS->getZExtValue() : 0;
1173 if (LHSC != 0 || RHSC != 0) return false;
1181 int RHSC;
1182 if (isScaledConstantInRange(N.getOperand(1), Scale, 0, 32, RHSC)) {
1184 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1228 int RHSC;
1229 if (isScaledConstantInRange(N.getOperand(1), /*Scale=*/4, 0, 256, RHSC)) {
1236 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1305 int RHSC = (int)RHS->getZExtValue();
1307 RHSC = -RHSC;
1309 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned)
1316 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1335 int RHSC = (int)RHS->getSExtValue();
1337 RHSC = -RHSC;
1339 if ((RHSC >= -255) && (RHSC < 0)) { // 8 bits (always negative)
1346 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32);
1360 int RHSC;
1361 if (isScaledConstantInRange(N, /*Scale=*/1, 0, 0x100, RHSC)) { // 8 bits.
1363 ? CurDAG->getTargetConstant(RHSC, MVT::i32)
1364 : CurDAG->getTargetConstant(-RHSC, MVT::i32);
1380 int RHSC = (int)RHS->getZExtValue();
1381 if (RHSC >= 0 && RHSC < 0x1000) // 12 bits (unsigned)
1383 else if (RHSC < 0 && RHSC >= -255) // 8 bits
1435 uint32_t RHSC = (int)RHS->getZExtValue();
1436 if (RHSC > 1020 || RHSC % 4 != 0)
1445 OffImm = CurDAG->getTargetConstant(RHSC / 4, MVT::i32);