/llvm-project/llvm/test/CodeGen/X86/ |
H A D | fast-isel-divrem.ll | 4 define i8 @test_sdiv8(i8 %dividend, i8 %divisor) nounwind { 6 %result = sdiv i8 %dividend, %divisor 14 define i8 @test_srem8(i8 %dividend, i8 %divisor) nounwind { 16 %result = srem i8 %dividend, %divisor 24 define i8 @test_udiv8(i8 %dividend, i8 %divisor) nounwind { 26 %result = udiv i8 %dividend, %divisor 34 define i8 @test_urem8(i8 %dividend, i8 %divisor) nounwind { 36 %result = urem i8 %dividend, %divisor 44 define i16 @test_sdiv16(i16 %dividend, i16 %divisor) nounwind { 46 %result = sdiv i16 %dividend, %divisor [all …]
|
H A D | fast-isel-divrem-x86-64.ll | 3 define i64 @test_sdiv64(i64 %dividend, i64 %divisor) nounwind { 5 %result = sdiv i64 %dividend, %divisor 13 define i64 @test_srem64(i64 %dividend, i64 %divisor) nounwind { 15 %result = srem i64 %dividend, %divisor 23 define i64 @test_udiv64(i64 %dividend, i64 %divisor) nounwind { 25 %result = udiv i64 %dividend, %divisor 33 define i64 @test_urem64(i64 %dividend, i64 %divisor) nounwind { 35 %result = urem i64 %dividend, %divisor
|
H A D | div8.ll | 6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp { 9 %divisor.addr = alloca i8, align 1 12 store i8 %divisor, ptr %divisor.addr, align 1 14 %tmp1 = load i8, ptr %divisor.addr, align 1
|
/llvm-project/compiler-rt/lib/builtins/ |
H A D | udivmodti4.c | 104 utwords divisor; in __udivmodti4() local 105 divisor.all = b; in __udivmodti4() 108 if (divisor.all > dividend.all) { in __udivmodti4() 114 if (divisor.s.high == 0) { in __udivmodti4() 116 if (dividend.s.high < divisor.s.low) { in __udivmodti4() 119 divisor.s.low, &remainder.s.low); in __udivmodti4() 124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4() 125 dividend.s.high = dividend.s.high % divisor.s.low; in __udivmodti4() 127 divisor.s.low, &remainder.s.low); in __udivmodti4() 135 __builtin_clzll(divisor.s.high) - __builtin_clzll(dividend.s.high); in __udivmodti4() [all …]
|
/llvm-project/mlir/lib/Analysis/Presburger/ |
H A D | Utils.cpp | 29 /// Normalize a division's `dividend` and the `divisor` by their GCD. For 30 /// example: if the dividend and divisor are [2,0,4] and 4 respectively, 31 /// they get normalized to [1,0,2] and 2. The divisor must be non-negative; 32 /// it is allowed for the divisor to be zero, but nothing is done in this case. 34 DynamicAPInt &divisor) { in normalizeDivisionByGCD() argument 35 assert(divisor > 0 && "divisor must be non-negative!"); in normalizeDivisionByGCD() 40 DynamicAPInt gcd = llvm::gcd(abs(dividend.front()), divisor); in normalizeDivisionByGCD() 58 divisor /= gcd; in normalizeDivisionByGCD() 66 /// `expr floordiv divisor` i 102 getDivRepr(const IntegerRelation & cst,unsigned pos,unsigned ubIneq,unsigned lbIneq,MutableArrayRef<DynamicAPInt> expr,DynamicAPInt & divisor) getDivRepr() argument 168 getDivRepr(const IntegerRelation & cst,unsigned pos,unsigned eqInd,MutableArrayRef<DynamicAPInt> expr,DynamicAPInt & divisor) getDivRepr() argument 230 computeSingleVarRepr(const IntegerRelation & cst,ArrayRef<bool> foundRepr,unsigned pos,MutableArrayRef<DynamicAPInt> dividend,DynamicAPInt & divisor) computeSingleVarRepr() argument 271 computeSingleVarRepr(const IntegerRelation & cst,ArrayRef<bool> foundRepr,unsigned pos,SmallVector<int64_t,8> & dividend,unsigned & divisor) computeSingleVarRepr() argument 317 getDivUpperBound(ArrayRef<DynamicAPInt> dividend,const DynamicAPInt & divisor,unsigned localVarIdx) getDivUpperBound() argument 329 getDivLowerBound(ArrayRef<DynamicAPInt> dividend,const DynamicAPInt & divisor,unsigned localVarIdx) getDivLowerBound() argument 496 insertDiv(unsigned pos,ArrayRef<DynamicAPInt> dividend,const DynamicAPInt & divisor) insertDiv() argument [all...] |
/llvm-project/clang/test/CodeGen/PowerPC/ |
H A D | builtins-ppc-xlcompat-macros.c | 93 long long testdivde(long long dividend, long long divisor) { in testdivde() argument 94 return __divde(dividend, divisor); in testdivde() 100 unsigned long long testdivdeu(unsigned long long dividend, unsigned long long divisor) { in testdivdeu() argument 101 return __divdeu(dividend, divisor); in testdivdeu() 112 int testdivwe(int dividend, int divisor) { in testdivwe() argument 113 return __divwe(dividend, divisor); in testdivwe() 123 unsigned int testdivweu(unsigned int dividend, unsigned int divisor) { in testdivweu() argument 124 return __divweu(dividend, divisor); in testdivweu()
|
H A D | builtins-ppc-xlcompat-error.c | 91 long long testdivde(long long dividend, long long divisor) { in testdivde() argument 92 …return __divde(dividend, divisor); //expected-error {{this builtin is only available on 64-bit tar… in testdivde() 95 unsigned long long testdivdeu(unsigned long long dividend, unsigned long long divisor) { in testdivdeu() argument 96 …return __divdeu(dividend, divisor); //expected-error {{this builtin is only available on 64-bit ta… in testdivdeu()
|
/llvm-project/llvm/test/CodeGen/ARM/Windows/ |
H A D | division.ll | 4 define arm_aapcs_vfpcc i32 @sdiv32(i32 %divisor, i32 %divident) { 6 %div = sdiv i32 %divident, %divisor 15 define arm_aapcs_vfpcc i32 @udiv32(i32 %divisor, i32 %divident) { 17 %div = udiv i32 %divident, %divisor 26 define arm_aapcs_vfpcc i64 @sdiv64(i64 %divisor, i64 %divident) { 28 %div = sdiv i64 %divident, %divisor 38 define arm_aapcs_vfpcc i64 @udiv64(i64 %divisor, i64 %divident) { 40 %div = udiv i64 %divident, %divisor
|
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | fast-math.ll | 149 define float @repeated_div_recip_allowed(i1 %pred, float %a, float %b, float %divisor) { 155 %x = fdiv arcp float %a, %divisor 156 %y = fdiv arcp float %b, %divisor 163 define float @repeated_div_recip_allowed_sel(i1 %pred, float %a, float %b, float %divisor) { 166 %x = fdiv arcp float %a, %divisor 167 %y = fdiv arcp float %b, %divisor 173 define float @repeated_div_recip_allowed_ftz(i1 %pred, float %a, float %b, float %divisor) #1 { 179 %x = fdiv arcp float %a, %divisor 180 %y = fdiv arcp float %b, %divisor 187 define float @repeated_div_recip_allowed_ftz_sel(i1 %pred, float %a, float %b, float %divisor) # [all...] |
/llvm-project/llvm/test/Transforms/CorrelatedValuePropagation/ |
H A D | udiv-expansion.ll | 8 define i8 @constant.divisor.v3(i8 %x) { 9 ; CHECK-LABEL: @constant.divisor.v3( 19 define i8 @constant.divisor.v4(i8 %x) { 20 ; CHECK-LABEL: @constant.divisor.v4( 32 define i8 @constant.divisor.x.range.v4(ptr %x.ptr) { 33 ; CHECK-LABEL: @constant.divisor.x.range.v4( 43 define i8 @constant.divisor.x.mask.v4(i8 %x) { 44 ; CHECK-LABEL: @constant.divisor.x.mask.v4( 54 define i8 @constant.divisor.v5(i8 %x) { 55 ; CHECK-LABEL: @constant.divisor [all...] |
H A D | urem-expansion.ll | 8 define i8 @constant.divisor.v3(i8 %x) { 9 ; CHECK-LABEL: @constant.divisor.v3( 19 define i8 @constant.divisor.v4(i8 %x) { 20 ; CHECK-LABEL: @constant.divisor.v4( 34 define i8 @constant.divisor.x.range.v4(ptr %x.ptr) { 35 ; CHECK-LABEL: @constant.divisor.x.range.v4( 47 define i8 @constant.divisor.x.mask.v4(i8 %x) { 48 ; CHECK-LABEL: @constant.divisor.x.mask.v4( 60 define i8 @constant.divisor.v5(i8 %x) { 61 ; CHECK-LABEL: @constant.divisor [all...] |
/llvm-project/compiler-rt/test/builtins/Unit/ |
H A D | divsc3_test.c | 48 float _Complex divisor; in test__divsc3() local 52 __real__ divisor = c; in test__divsc3() local 53 __imag__ divisor = d; in test__divsc3() local 58 switch (classify(divisor)) in test__divsc3() 83 switch (classify(divisor)) in test__divsc3() 114 switch (classify(divisor)) in test__divsc3() 139 switch (classify(divisor)) in test__divsc3() 164 switch (classify(divisor)) in test__divsc3()
|
H A D | mulsc3_test.c | 48 float _Complex divisor; in test__mulsc3() local 52 __real__ divisor = c; in test__mulsc3() local 53 __imag__ divisor = d; in test__mulsc3() local 58 switch (classify(divisor)) in test__mulsc3() 83 switch (classify(divisor)) in test__mulsc3() 114 switch (classify(divisor)) in test__mulsc3() 139 switch (classify(divisor)) in test__mulsc3() 164 switch (classify(divisor)) in test__mulsc3()
|
H A D | divxc3_test.c | 53 long double _Complex divisor; in test__divxc3() local 57 __real__ divisor = c; in test__divxc3() local 58 __imag__ divisor = d; in test__divxc3() local 63 switch (classify(divisor)) in test__divxc3() 88 switch (classify(divisor)) in test__divxc3() 119 switch (classify(divisor)) in test__divxc3() 144 switch (classify(divisor)) in test__divxc3() 169 switch (classify(divisor)) in test__divxc3()
|
H A D | divdc3_test.c | 48 double _Complex divisor; in test__divdc3() local 52 __real__ divisor = c; in test__divdc3() local 53 __imag__ divisor = d; in test__divdc3() local 58 switch (classify(divisor)) in test__divdc3() 83 switch (classify(divisor)) in test__divdc3() 114 switch (classify(divisor)) in test__divdc3() 139 switch (classify(divisor)) in test__divdc3() 164 switch (classify(divisor)) in test__divdc3()
|
H A D | muldc3_test.c | 48 double _Complex divisor; in test__muldc3() local 52 __real__ divisor = c; in test__muldc3() local 53 __imag__ divisor = d; in test__muldc3() local 58 switch (classify(divisor)) in test__muldc3() 83 switch (classify(divisor)) in test__muldc3() 110 switch (classify(divisor)) in test__muldc3() 135 switch (classify(divisor)) in test__muldc3() 160 switch (classify(divisor)) in test__muldc3()
|
H A D | mulxc3_test.c | 53 long double _Complex divisor; in test__mulxc3() local 57 __real__ divisor = c; in test__mulxc3() local 58 __imag__ divisor = d; in test__mulxc3() local 63 switch (classify(divisor)) in test__mulxc3() 88 switch (classify(divisor)) in test__mulxc3() 115 switch (classify(divisor)) in test__mulxc3() 140 switch (classify(divisor)) in test__mulxc3() 165 switch (classify(divisor)) in test__mulxc3()
|
H A D | multc3_test.c | 50 long double _Complex divisor; in test__multc3() local 54 __real__ divisor = c; in test__multc3() local 55 __imag__ divisor = d; in test__multc3() local 60 switch (classify(divisor)) in test__multc3() 85 switch (classify(divisor)) in test__multc3() 112 switch (classify(divisor)) in test__multc3() 137 switch (classify(divisor)) in test__multc3() 162 switch (classify(divisor)) in test__multc3()
|
H A D | divtc3_test.c | 49 Qcomplex divisor; in test__divtc3() local 53 COMPLEXTF_REAL(divisor) = c; in test__divtc3() 54 COMPLEXTF_IMAGINARY(divisor) = d; in test__divtc3() 58 switch (classify(divisor)) { in test__divtc3() 82 switch (classify(divisor)) { in test__divtc3() 121 switch (classify(divisor)) { in test__divtc3() 145 switch (classify(divisor)) { in test__divtc3() 169 switch (classify(divisor)) { in test__divtc3()
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | srem-seteq-vec-nonsplat.ll | 34 ; One all-ones divisor in odd divisor 76 ; One all-ones divisor in even divisor 124 ; One all-ones divisor in odd+even divisor 180 ; One power-of-two divisor in odd divisor 208 ; One power-of-two divisor in even divisor 236 ; One power-of-two divisor in odd+even divisor 266 ; One one divisor in odd divisor 288 ; One one divisor in even divisor 313 ; One one divisor in odd+even divisor 343 ; One INT_MIN divisor in odd divisor [all …]
|
H A D | urem-seteq-vec-nonsplat.ll | 32 ; One all-ones divisor in odd divisor 68 ; One all-ones divisor in even divisor 118 ; One all-ones divisor in odd+even divisor 170 ; One power-of-two divisor in odd divisor 196 ; One power-of-two divisor in even divisor 222 ; One power-of-two divisor in odd+even divisor 250 ; One one divisor in odd divisor 270 ; One one divisor in even divisor 292 ; One one divisor in odd+even divisor 320 ; One INT_MIN divisor in odd divisor [all …]
|
/llvm-project/mlir/include/mlir/Analysis/Presburger/ |
H A D | Utils.h | 159 const DynamicAPInt &divisor) { in setDiv() 161 denoms[i] = divisor; 164 // Find the greatest common divisor (GCD) of the dividends and divisor for 165 // each valid division. Divide the dividends and divisor by the GCD to 170 const DynamicAPInt &divisor); 208 /// The parameter `dividend` corresponds to `expr` above, `divisor` to `d`, and 213 /// The divisor must be positive. 215 const DynamicAPInt &divisor, 218 const DynamicAPInt &divisor, 157 setDiv(unsigned i,ArrayRef<DynamicAPInt> dividend,const DynamicAPInt & divisor) setDiv() argument [all...] |
/llvm-project/llvm/test/CodeGen/SystemZ/ |
H A D | regalloc-GR128.ll | 7 define void @test0(i64 %dividend, i64 %divisor) { 8 %rem = urem i64 %dividend, %divisor 14 define i64 @test1(i64 %dividend, i64 %divisor) { 15 %rem = urem i64 %dividend, %divisor
|
/llvm-project/polly/lib/External/isl/ |
H A D | isl_int_sioimath.c | 86 uint32_t dividend, divisor, remainder; in isl_sioimath_smallgcd() local 89 divisor = labs(rhs); in isl_sioimath_smallgcd() 90 while (divisor) { in isl_sioimath_smallgcd() 91 remainder = dividend % divisor; in isl_sioimath_smallgcd() 92 dividend = divisor; in isl_sioimath_smallgcd() 93 divisor = remainder; in isl_sioimath_smallgcd()
|
/llvm-project/third-party/benchmark/test/ |
H A D | donotoptimize_assembly_test.cc | 149 int divisor = 2; in test_div_by_two() local 150 benchmark::DoNotOptimize(divisor); in test_div_by_two() 151 return input / divisor; in test_div_by_two()
|