Home
last modified time | relevance | path

Searched refs:Remainder (Results 1 – 23 of 23) sorted by relevance

/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp109 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
110 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
139 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
140 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
230 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
231 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
260 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
261 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
/external/llvm/lib/Support/
DAPInt.cpp1663 APInt *Quotient, APInt *Remainder) in divide() argument
1685 if ((Remainder?4:3)*n+2*m+1 <= 128) { in divide()
1689 if (Remainder) in divide()
1695 if (Remainder) in divide()
1718 if (Remainder) in divide()
1800 if (Remainder) { in divide()
1802 if (Remainder->BitWidth != RHS.BitWidth) { in divide()
1803 if (Remainder->isSingleWord()) in divide()
1804 Remainder->VAL = 0; in divide()
1806 delete [] Remainder->pVal; in divide()
[all …]
DScaledNumber.cpp70 uint64_t Remainder = Dividend64 % Divisor; in divide32() local
77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
/external/llvm/test/CodeGen/ARM/
Ddiv.ll46 ; EABI MODE = Remainder in R1, quotient in R0
61 ; EABI MODE = Remainder in R1, quotient in R0
76 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1
91 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1
/external/llvm/lib/Target/Mips/
DMips16InstrInfo.cpp216 int64_t Remainder = FrameSize - Base; in makeFrame() local
218 if (isInt<16>(-Remainder)) in makeFrame()
219 BuildAddiuSpImm(MBB, I, -Remainder); in makeFrame()
221 adjustStackPtrBig(SP, -Remainder, MBB, I, Mips::V0, Mips::V1); in makeFrame()
240 int64_t Remainder = FrameSize - Base; in restoreFrame() local
244 if (isInt<16>(Remainder)) in restoreFrame()
245 BuildAddiuSpImm(MBB, I, Remainder); in restoreFrame()
247 adjustStackPtrBig(SP, Remainder, MBB, I, Mips::A0, Mips::A1); in restoreFrame()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp230 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local
233 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM()
238 SDValue Remainder_GE_Zero = DAG.getSelectCC(DL, Remainder, in LowerUDIVREM()
268 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM()
271 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM()
275 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
/external/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp40 PHINode *Remainder; member
43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes()
210 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
DIntegerDivision.cpp91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode() local
96 return Remainder; in generatedUnsignedRemainderCode()
394 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder() local
397 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
411 Value *Remainder = generatedUnsignedRemainderCode(Rem->getOperand(0), in expandRemainder() local
415 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp1121 APInt Remainder = ConstDelta; in strongSIVtest() local
1122 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder); in strongSIVtest()
1124 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in strongSIVtest()
1126 if (Remainder != 0) { in strongSIVtest()
1313 APInt Remainder = APDelta; in weakCrossingSIVtest() local
1314 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder); in weakCrossingSIVtest()
1315 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest()
1316 if (Remainder != 0) { in weakCrossingSIVtest()
1326 Remainder = Distance.srem(Two); in weakCrossingSIVtest()
1327 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest()
[all …]
DScalarEvolutionExpander.cpp228 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() argument
256 Remainder = SE.getAddExpr( in FactorOutConstant()
257 Remainder, SE.getConstant(C->getAPInt().srem(FC->getAPInt()))); in FactorOutConstant()
287 if (!FactorOutConstant(Start, Remainder, Factor, SE, DL)) in FactorOutConstant()
418 const SCEV *Remainder = SE.getConstant(Ty, 0); in expandAddToGEP() local
419 if (FactorOutConstant(Op, Remainder, ElSize, SE, DL)) { in expandAddToGEP()
422 if (!Remainder->isZero()) in expandAddToGEP()
423 NewOps.push_back(Remainder); in expandAddToGEP()
DScalarEvolution.cpp699 const SCEV **Remainder) { in divide()
708 *Remainder = D.Zero; in divide()
714 *Remainder = D.Zero; in divide()
721 *Remainder = D.Zero; in divide()
737 *Remainder = Numerator; in divide()
741 *Remainder = D.Zero; in divide()
747 *Remainder = D.Remainder; in divide()
777 Remainder = SE.getConstant(RemainderVal); in visitConstant()
795 Remainder = SE.getAddRecExpr(StartR, StepR, Numerator->getLoop(), in visitAddRecExpr()
817 Remainder = Rs[0]; in visitAddExpr()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3190 const SCEV *Remainder = CollectSubexprs(S, C, Ops, L, SE, Depth+1); in CollectSubexprs() local
3191 if (Remainder) in CollectSubexprs()
3192 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs()
3200 const SCEV *Remainder = CollectSubexprs(AR->getStart(), in CollectSubexprs() local
3204 if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) { in CollectSubexprs()
3205 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs()
3206 Remainder = nullptr; in CollectSubexprs()
3208 if (Remainder != AR->getStart()) { in CollectSubexprs()
3209 if (!Remainder) in CollectSubexprs()
3210 Remainder = SE.getConstant(AR->getType(), 0); in CollectSubexprs()
[all …]
/external/llvm/include/llvm/ADT/
DBitVector.h143 if (unsigned Remainder = Size % BITWORD_SIZE) in all() local
144 return Bits[Size / BITWORD_SIZE] == (1UL << Remainder) - 1; in all()
DAPInt.h181 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
943 APInt &Remainder);
946 APInt &Remainder);
/external/llvm/test/CodeGen/AMDGPU/
Dsdiv.ll10 ; selectcc Remainder -1, 0, -1, SETGT
Dudivrem.ll41 ; SI-DAG: v_sub_i32_e32 [[Remainder:v[0-9]+]], vcc, {{[vs][0-9]+}}, [[Num_S_Remainder]]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple() local
107 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple()
109 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple()
111 return Remainder.isMinValue(); in IsMultiple()
DInstructionCombining.cpp1054 APInt Quotient(Scale), Remainder(Scale); // Init ensures right bitwidth. in Descale() local
1055 APInt::sdivrem(CI->getValue(), Scale, Quotient, Remainder); in Descale()
1056 if (!Remainder.isMinValue()) in Descale()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp599 unsigned Remainder = 0; in SelectInt64CountDirect() local
614 Remainder = Imm; in SelectInt64CountDirect()
646 if ((Remainder >> 16) & 0xFFFF) in SelectInt64CountDirect()
648 if (Remainder & 0xFFFF) in SelectInt64CountDirect()
687 unsigned Remainder = 0; in SelectInt64Direct() local
702 Remainder = Imm; in SelectInt64Direct()
747 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in SelectInt64Direct()
751 if ((Lo = Remainder & 0xFFFF)) { in SelectInt64Direct()
DPPCFastISel.cpp2025 unsigned Remainder = 0; in PPCMaterialize64BitInt() local
2037 Remainder = Imm; in PPCMaterialize64BitInt()
2060 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in PPCMaterialize64BitInt()
2067 if ((Lo = Remainder & 0xFFFF)) { in PPCMaterialize64BitInt()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1783 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local
1786 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM()
1821 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM()
1824 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM()
1828 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
/external/llvm/test/Analysis/ScalarEvolution/
Dflags-from-poison.ll288 ; Remainder of poison by non-poison divisor does not trigger UB.
/external/llvm/lib/Target/AArch64/
DAArch64SchedA57.td538 // Remainder