/external/boringssl/src/crypto/fipsmodule/bn/ |
D | bn_tests.txt | 5980 # Quotient tests. 5982 # These test vectors satisfy Quotient = A / B, rounded towards zero, and 5983 # Remainder = A - B * Quotient. 5985 Quotient = 1 5990 Quotient = -2 5995 Quotient = -4 6000 Quotient = 8 6005 Quotient = 10 6010 Quotient = -20 6015 Quotient = -40 [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | IntegerDivision.cpp | 49 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST() 79 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST() 170 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 171 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST() 200 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 201 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
|
/external/llvm/lib/Support/ |
D | ScaledNumber.cpp | 70 uint64_t Quotient = Dividend64 / Divisor; in divide32() local 74 if (Quotient > UINT32_MAX) in divide32() 75 return getAdjusted<uint32_t>(Quotient, Shift); in divide32() 78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32() 104 uint64_t Quotient = Dividend / Divisor; in divide64() local 108 while (!(Quotient >> 63) && Dividend) { in divide64() 115 Quotient <<= 1; in divide64() 117 Quotient |= 1; in divide64() 122 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor)); in divide64()
|
D | APInt.cpp | 1668 unsigned rhsWords, APInt *Quotient, APInt *Remainder) { in divide() argument 1771 if (Quotient) { in divide() 1773 if (Quotient->BitWidth != LHS.BitWidth) { in divide() 1774 if (Quotient->isSingleWord()) in divide() 1775 Quotient->VAL = 0; in divide() 1777 delete [] Quotient->pVal; in divide() 1778 Quotient->BitWidth = LHS.BitWidth; in divide() 1779 if (!Quotient->isSingleWord()) in divide() 1780 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide() 1782 Quotient->clearAllBits(); in divide() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 1642 unsigned rhsWords, APInt *Quotient, APInt *Remainder) { in divide() argument 1745 if (Quotient) { in divide() 1747 if (Quotient->BitWidth != LHS.BitWidth) { in divide() 1748 if (Quotient->isSingleWord()) in divide() 1749 Quotient->VAL = 0; in divide() 1751 delete [] Quotient->pVal; in divide() 1752 Quotient->BitWidth = LHS.BitWidth; in divide() 1753 if (!Quotient->isSingleWord()) in divide() 1754 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide() 1756 Quotient->clearAllBits(); in divide() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 175 APInt *Quotient, APInt *Remainder); 806 APInt &Quotient, APInt &Remainder); 809 APInt &Quotient, APInt &Remainder) { in sdivrem() argument 812 APInt::udivrem(-LHS, -RHS, Quotient, Remainder); in sdivrem() 814 APInt::udivrem(-LHS, RHS, Quotient, Remainder); in sdivrem() 815 Quotient = -Quotient; in sdivrem() 818 APInt::udivrem(LHS, -RHS, Quotient, Remainder); in sdivrem() 819 Quotient = -Quotient; in sdivrem() 821 APInt::udivrem(LHS, RHS, Quotient, Remainder); in sdivrem()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | APInt.cpp | 1767 APInt *Quotient, APInt *Remainder) in divide() argument 1871 if (Quotient) { in divide() 1873 if (Quotient->BitWidth != LHS.BitWidth) { in divide() 1874 if (Quotient->isSingleWord()) in divide() 1875 Quotient->VAL = 0; in divide() 1877 delete [] Quotient->pVal; in divide() 1878 Quotient->BitWidth = LHS.BitWidth; in divide() 1879 if (!Quotient->isSingleWord()) in divide() 1880 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide() 1882 Quotient->clearAllBits(); in divide() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode() local 90 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode() 93 if (Instruction *UDiv = dyn_cast<Instruction>(Quotient)) in generatedUnsignedRemainderCode() 449 Value *Quotient = generateSignedDivisionCode(Div->getOperand(0), in expandDivision() local 454 Div->replaceAllUsesWith(Quotient); in expandDivision() 469 Value *Quotient = generateUnsignedDivisionCode(Div->getOperand(0), in expandDivision() local 472 Div->replaceAllUsesWith(Quotient); in expandDivision()
|
D | BypassSlowDivision.cpp | 39 PHINode *Quotient; member 43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes() 194 I->replaceAllUsesWith(Value.Quotient); in reuseOrInsertFastDiv()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 92 static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient, in IsMultiple() argument 107 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple() 109 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple() 835 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local 838 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms() 840 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms() 846 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms() 848 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms() 861 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local 866 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms() [all …]
|
D | InstructionCombining.cpp | 1050 APInt Quotient(Scale), Remainder(Scale); // Init ensures right bitwidth. in Descale() local 1051 APInt::sdivrem(CI->getValue(), Scale, Quotient, Remainder); in Descale() 1056 Op = ConstantInt::get(CI->getType(), Quotient); in Descale()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInstrInfo.td | 160 // Special case divide FMA with scale and flags (src0 = Quotient, 165 // Special case divide fixup and flags(src0 = Quotient, src1 =
|
D | AMDGPUISelLowering.cpp | 1464 SDValue Quotient = DAG.getNode(ISD::MULHU, DL, VT, Tmp0, Num); in LowerUDIVREM() local 1467 SDValue Num_S_Remainder = DAG.getNode(ISD::MUL, DL, VT, Quotient, Den); in LowerUDIVREM() 1490 SDValue Quotient_A_One = DAG.getNode(ISD::ADD, DL, VT, Quotient, in LowerUDIVREM() 1494 SDValue Quotient_S_One = DAG.getNode(ISD::SUB, DL, VT, Quotient, in LowerUDIVREM() 1499 Quotient, Quotient_A_One, ISD::SETEQ); in LowerUDIVREM()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 181 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 947 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient, 950 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 185 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 923 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient, 926 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | udivrem.ll | 39 ; SI: v_mul_hi_u32 [[Quotient:v[0-9]+]] 45 ; SI-DAG: v_add_i32_e32 [[Quotient_A_One:v[0-9]+]], vcc, 1, [[Quotient]]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 700 const SCEV *Denominator, const SCEV **Quotient, in divide() 709 *Quotient = D.One; in divide() 715 *Quotient = D.Zero; in divide() 722 *Quotient = Numerator; in divide() 730 *Quotient = Numerator; in divide() 732 divide(SE, *Quotient, Op, &Q, &R); in divide() 733 *Quotient = Q; in divide() 738 *Quotient = D.Zero; in divide() 748 *Quotient = D.Quotient; in divide() 778 Quotient = SE.getConstant(QuotientVal); in visitConstant() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 2637 if (const SCEV *Quotient = getExactSDiv(AR, FactorS, SE, true)) { in GenerateScales() local 2640 F.ScaledReg = Quotient; in GenerateScales()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 3571 if (const SCEV *Quotient = getExactSDiv(AR, FactorS, SE, true)) { in GenerateScales() local 3574 F.ScaledReg = Quotient; in GenerateScales()
|