Home
last modified time | relevance | path

Searched refs:urem (Results 1 – 25 of 75) sorted by relevance

123

/freebsd/sys/libkern/
H A Ddivmoddi4.c44 u_quad_t ua, ub, uq, urem; in __divmoddi4() local
61 uq = __qdivrem(ua, ub, &urem); in __divmoddi4()
63 *rem = negr ? -urem : urem; in __divmoddi4()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp33 APInt ANC = T - 1 - T.urem(AD); // absolute value of NC in get()
88 APInt NC = AllOnes - (AllOnes + 1 - D).urem(D); in get()
89 assert(NC.urem(D) == D - 1 && "Unexpected NC value"); in get()
H A DAPInt.cpp1133 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth)); in rotateModulo()
1666 APInt APInt::urem(const APInt &RHS) const { in urem() function in APInt
1704 uint64_t APInt::urem(uint64_t RHS) const { in urem() function in APInt
1739 return -((-(*this)).urem(-RHS)); in srem()
1740 return -((-(*this)).urem(RHS)); in srem()
1743 return this->urem(-RHS); in srem()
1744 return this->urem(RHS); in srem()
1750 return -((-(*this)).urem(-RHS)); in srem()
1751 return -((-(*this)).urem(RHS)); in srem()
1754 return this->urem(-RHS); in srem()
[all …]
H A DKnownBits.cpp1049 KnownBits KnownBits::urem(const KnownBits &LHS, const KnownBits &RHS) { in urem() function in KnownBits
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp351 if (BaseC->getAPInt().urem(VectorWidth) == 0) in IsSafeActiveMask()
362 if (BaseC->getAPInt().urem(VectorWidth) == 0) in IsSafeActiveMask()
365 if (BaseC->getAPInt().urem(VectorWidth) == 0) in IsSafeActiveMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUImageIntrinsicOptimizer.cpp256 VecOp = B.CreateExtractElement(NewCalls[0], Idx->getValue().urem(4)); in optimizeSection()
263 B.CreateExtractElement(NewCalls[I], Idx->getValue().urem(4)), I); in optimizeSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h130 *this = urem(RHS);
145 return IsUnsigned ? APSInt(urem(RHS), true) : APSInt(srem(RHS), false);
H A DAPInt.h980 LLVM_ABI APInt urem(const APInt &RHS) const;
981 LLVM_ABI uint64_t urem(uint64_t RHS) const;
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp94 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer()
320 if (EltSize.urem(Alignment.value()) != 0) in isDereferenceableAndAlignedInLoop()
382 if (Offset->getAPInt().urem(Alignment.value()) != 0) in isDereferenceableAndAlignedInLoop()
H A DDemandedBits.cpp128 uint64_t ShiftAmt = SA->urem(BitWidth); in determineLiveOperandBits()
H A DHashRecognize.cpp167 return KnownBits::urem(KnownL, KnownR); in computeBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DEVLIndVarSimplify.cpp89 V.urem(*Fixed).isZero()) in getVFFromIndVar()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoM.td85 def : PatGprGpr<urem, REMU>;
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips64r6InstrInfo.td71 class DMODU_DESC : DIVMOD_DESC_BASE<"dmodu", GPR64Opnd, II_DMODU, urem>;
319 def : MipsPat<(i64 (sext (i32 (urem GPR32:$src, GPR32:$src2)))),
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h484 LLVM_ABI ConstantRange urem(const ConstantRange &Other) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp908 .urem(Form); in prepareBaseForDispFormChain()
1034 .urem(4) && in rewriteLoadStores()
1260 if (Diff && !Diff->getAPInt().urem(Form)) { in alreadyPrepared()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp317 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) in selectShiftMask()
322 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) { in selectShiftMask()
333 if (Imm.urem(ShiftWidth) == ShiftWidth - 1) { in selectShiftMask()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegralAP.h260 R->copy(A.getValue().urem(B.getValue())); in rem()
H A DInterpBuiltin.cpp718 Result = APSInt(Value.rotr(Amount.urem(Value.getBitWidth())), in interp__builtin_rotate()
721 Result = APSInt(Value.rotl(Amount.urem(Value.getBitWidth())), in interp__builtin_rotate()
1809 if (Size.urem(DestElemSize) != 0) { in interp__builtin_memcpy()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h402 LLVM_ABI static KnownBits urem(const KnownBits &LHS, const KnownBits &RHS);
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kInstrArithmetic.td661 def : Pat<(urem i8:$dst, i8:$opd),
682 def : Pat<(urem i16:$dst, i16:$opd),
703 def : Pat<(urem i8:$dst, Mxi8immSExt8:$opd),
724 def : Pat<(urem i16:$dst, Mxi16immSExt16:$opd),
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrInteger.td59 defm REM_U : BinaryInt<urem, "rem_u", 0x70, 0x82>;
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/
H A DSelectionDAGCompat.td72 def : GINodeEquiv<G_UREM, urem>;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp961 return urem(Other); in binaryOp()
1450 ConstantRange ConstantRange::urem(const ConstantRange &RHS) const { in urem() function in ConstantRange
1460 return {LHSInt->urem(*RHSInt)}; in urem()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp913 INSTKEYWORD(urem, URem); INSTKEYWORD(srem, SRem); INSTKEYWORD(frem, FRem); in LexIdentifier()

123