Home
last modified time | relevance | path

Searched refs:RHSC (Results 1 – 25 of 81) sorted by relevance

1234

/external/llvm-project/llvm/lib/Target/ARC/
DARCISelDAGToDAG.cpp106 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() local
108 RHSC = -RHSC; in SelectAddrModeS9()
111 if (!isInt<9>(RHSC)) in SelectAddrModeS9()
119 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeS9()
135 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() local
137 RHSC = -RHSC; in SelectAddrModeFar()
139 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeFar()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCISelDAGToDAG.cpp106 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() local
108 RHSC = -RHSC; in SelectAddrModeS9()
111 if (!isInt<9>(RHSC)) in SelectAddrModeS9()
119 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeS9()
135 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() local
137 RHSC = -RHSC; in SelectAddrModeFar()
139 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeFar()
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp627 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()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp873 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOrOfICmpsOfAndWithPow2() local
874 if (!LHSC || !RHSC || !LHSC->isZero() || !RHSC->isZero()) in foldAndOrOfICmpsOfAndWithPow2()
1201 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOfICmps() local
1202 if (!LHSC || !RHSC) in foldAndOfICmps()
1205 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps()
1228 SmallC = RHSC; in foldAndOfICmps()
1233 BigC = RHSC; in foldAndOfICmps()
1272 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps()
1274 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps()
1278 std::swap(LHSC, RHSC); in foldAndOfICmps()
[all …]
DInstCombineCompares.cpp3170 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
3172 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3178 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3199 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3203 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3231 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3234 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3242 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3243 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3926 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp655 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
657 RHSC = -RHSC; in SelectAddrModeImm12()
659 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
666 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
685 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
686 if (RHSC & 1) { in SelectLdStSOReg()
687 RHSC = RHSC & ~1; in SelectLdStSOReg()
689 if (RHSC < 0) { in SelectLdStSOReg()
691 RHSC = - RHSC; in SelectLdStSOReg()
693 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp675 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
677 RHSC = -RHSC; in SelectAddrModeImm12()
679 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
686 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
705 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
706 if (RHSC & 1) { in SelectLdStSOReg()
707 RHSC = RHSC & ~1; in SelectLdStSOReg()
709 if (RHSC < 0) { in SelectLdStSOReg()
711 RHSC = - RHSC; in SelectLdStSOReg()
713 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1187 ConstantInt *LHSC, *RHSC; in foldAndOfICmps() local
1189 !match(RHS->getOperand(1), m_ConstantInt(RHSC))) in foldAndOfICmps()
1192 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps()
1215 SmallC = RHSC; in foldAndOfICmps()
1220 BigC = RHSC; in foldAndOfICmps()
1259 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps()
1261 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps()
1265 std::swap(LHSC, RHSC); in foldAndOfICmps()
1275 assert(LHSC != RHSC && "Compares not folded above?"); in foldAndOfICmps()
1286 if (LHSC->getValue() == (RHSC->getValue() - 1)) in foldAndOfICmps()
[all …]
DInstCombineCompares.cpp3237 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
3239 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3245 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3266 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3270 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3298 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3301 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3309 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3310 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3991 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRISelDAGToDAG.cpp85 int RHSC = (int)RHS->getZExtValue(); in SelectAddr() local
89 RHSC = -RHSC; in SelectAddr()
100 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
110 if (isUInt<6>(RHSC) && (VT == MVT::i8 || VT == MVT::i16)) { in SelectAddr()
112 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
DAVRISelLowering.cpp807 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local
809 RHSC = -RHSC; in getPreIndexedAddressParts()
811 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts()
816 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts()
858 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local
860 RHSC = -RHSC; in getPostIndexedAddressParts()
861 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts()
866 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
/external/llvm-project/llvm/lib/Target/AVR/
DAVRISelDAGToDAG.cpp85 int RHSC = (int)RHS->getZExtValue(); in SelectAddr() local
89 RHSC = -RHSC; in SelectAddr()
100 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
110 if (isUInt<6>(RHSC) && (VT == MVT::i8 || VT == MVT::i16)) { in SelectAddr()
112 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
DAVRISelLowering.cpp806 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local
808 RHSC = -RHSC; in getPreIndexedAddressParts()
810 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts()
815 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts()
857 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local
859 RHSC = -RHSC; in getPostIndexedAddressParts()
860 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts()
865 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2387 if (auto *RHSC = dyn_cast<PtrToIntOperator>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2388 Value *RHSCIOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2391 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2396 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2397 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
3639 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3644 if (RHSC->isNullValue() && in visitICmpInst()
3664 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3668 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3697 RHSC, I.getName()); in visitICmpInst()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dbcmp-1.ll40 ; CHECK-NEXT: [[RHSC:%.*]] = load i8, i8* [[MEM2:%.*]], align 1
41 ; CHECK-NEXT: [[RHSV:%.*]] = zext i8 [[RHSC]] to i32
Dstrncmp-1.ll80 ; CHECK-NEXT: [[RHSC:%.*]] = load i8, i8* [[STR2:%.*]], align 1
81 ; CHECK-NEXT: [[RHSV:%.*]] = zext i8 [[RHSC]] to i32
Dmemcmp-1.ll40 ; CHECK-NEXT: [[RHSC:%.*]] = load i8, i8* %mem2, align 1
41 ; CHECK-NEXT: [[RHSV:%.*]] = zext i8 [[RHSC]] to i32
/external/llvm-project/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
814 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
824 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
832 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
842 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
814 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
824 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
832 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
842 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
/external/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp802 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
803 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
812 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
813 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
820 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
821 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
830 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
831 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp771 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local
775 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth()
776 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
782 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth()
787 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local
791 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
797 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth()
849 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local
851 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed()
857 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed()
[all …]
/external/llvm/lib/MC/
DMCExpr.cpp88 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local
89 if (RHSC->getValue() < 0) { in print()
90 OS << RHSC->getValue(); in print()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp848 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local
852 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth()
853 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
859 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth()
864 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local
868 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
874 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth()
919 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local
921 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed()
927 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCExpr.cpp105 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local
106 if (RHSC->getValue() < 0) { in print()
107 OS << RHSC->getValue(); in print()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp896 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local
897 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC()
1100 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local
1101 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts()
1102 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts()
1106 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()

1234