/freebsd-current/sys/libkern/ |
H A D | divmoddi4.c | 44 u_quad_t ua, ub, uq, urem; local 61 uq = __qdivrem(ua, ub, &urem); 63 *rem = negr ? -urem : urem;
|
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | DivisionByConstantInfo.cpp | 33 APInt ANC = T - 1 - T.urem(AD); // absolute value of NC 86 // Calculate NC, the largest dividend such that NC.urem(D) == D-1. 87 APInt NC = AllOnes - (AllOnes + 1 - D).urem(D); 88 assert(NC.urem(D) == D - 1 && "Unexpected NC value");
|
H A D | APInt.cpp | 1099 // Extend the rotate APInt, so that the urem doesn't divide by 0. 1103 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth)); 1432 // compute the remainder (urem uses this). 1672 APInt APInt::urem(const APInt &RHS) const { 1710 uint64_t APInt::urem(uint64_t RHS) const { 1745 return -((-(*this)).urem(-RHS)); 1746 return -((-(*this)).urem(RHS)); 1749 return this->urem(-RHS); 1750 return this->urem(RHS); 1756 return -((-(*this)).urem( [all...] |
H A D | KnownBits.cpp | 900 KnownBits KnownBits::urem(const KnownBits &LHS, const KnownBits &RHS) { function in class:KnownBits
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUImageIntrinsicOptimizer.cpp | 257 VecOp = B.CreateExtractElement(NewCalls[0], Idx->getValue().urem(4)); 264 B.CreateExtractElement(NewCalls[I], Idx->getValue().urem(4)), I);
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVETailPredication.cpp | 351 if (BaseC->getAPInt().urem(VectorWidth) == 0) 362 if (BaseC->getAPInt().urem(VectorWidth) == 0) 365 if (BaseC->getAPInt().urem(VectorWidth) == 0)
|
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Loads.cpp | 61 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) 317 if (Offset->getAPInt().urem(Alignment.value()) != 0) 333 if (EltSize.urem(Alignment.value()) != 0)
|
H A D | DemandedBits.cpp | 130 uint64_t ShiftAmt = SA->urem(BitWidth);
|
H A D | ScalarEvolution.cpp | 2697 // Canonicalize (-1 * urem X, Y) + X --> (Y * X/Y) 3401 return getZero(LHS->getType()); // X urem 1 --> 0 3412 // Fallback to %a == %x urem %y == %x -<nuw> ((%x udiv %y) *<nuw> %y) 3465 if (!StepInt.urem(DivInt) && 3479 if (StartC && !DivInt.urem(StepInt) && 3485 const APInt &StartRem = StartInt.urem(StepInt); 6631 APInt Remainder = APInt::getMaxValue(BitWidth).urem(Multiple); 6891 uint64_t Rem = MaxVal.urem(Align); 8050 // If both operands are non-negative, this is just an urem. 14297 Multiple.urem(RecomputedMultipl [all...] |
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APSInt.h | 129 *this = urem(RHS); 144 return IsUnsigned ? APSInt(urem(RHS), true) : APSInt(srem(RHS), false);
|
H A D | APInt.h | 958 APInt urem(const APInt &RHS) const; 959 uint64_t urem(uint64_t RHS) const;
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 458 ConstantRange urem(const ConstantRange &Other) const;
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCLoopInstrFormPrep.cpp | 899 // key: value of (Offset urem DispConstraint). For DSForm, it can 912 .urem(Form); 1038 .urem(4) && 1264 if (Diff && !Diff->getAPInt().urem(Form)) {
|
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | IntegralAP.h | 210 *R = IntegralAP(A.V.urem(B.V));
|
H A D | InterpBuiltin.cpp | 597 Result = APSInt(Value.rotr(Amount.urem(Value.getBitWidth())), 600 Result = APSInt(Value.rotl(Amount.urem(Value.getBitWidth())),
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 370 /// Compute known bits for urem(LHS, RHS). 371 static KnownBits urem(const KnownBits &LHS, const KnownBits &RHS); 472 // Internal helper for getting the initial KnownBits for an `srem` or `urem`
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
H A D | RISCVInstructionSelector.cpp | 198 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) 203 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) { 214 if (Imm.urem(ShiftWidth) == ShiftWidth - 1) {
|
/freebsd-current/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 894 return urem(Other); 1354 ConstantRange ConstantRange::urem(const ConstantRange &RHS) const { 1364 return {LHSInt->urem(*RHSInt)};
|
H A D | ConstantFold.cpp | 913 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V));
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 881 Known = KnownBits::urem(LHSKnown, RHSKnown); 983 uint64_t ShiftAmt = SA->urem(BitWidth);
|
/freebsd-current/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLLexer.cpp | 852 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem);
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 208 if (Offset.urem(ScalarSizeInBytes) != 0) 562 // It is not safe to transform things like div, urem, etc. because we may 1182 IdxRange = IdxRange.urem(CI->getValue());
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64LegalizerInfo.cpp | 1260 if (!VRegAndVal || VRegAndVal->Value.urem(BitWidth) == 0) 1264 APInt Amount = VRegAndVal->Value.urem(BitWidth);
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 754 // Additional macros to execute binary operations udiv/sdiv/urem/srem since 793 case Instruction::URem: INTEGER_VECTOR_FUNCTION(urem) break; 835 case Instruction::URem: R.IntVal = Src1.IntVal.urem(Src2.IntVal); break; 2079 case Instruction::URem: Dest.IntVal = Op0.IntVal.urem(Op1.IntVal); break;
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 810 case Instruction::URem:GV.IntVal = LHS.IntVal.urem(RHS.IntVal); break;
|