| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | fast-isel-divrem.ll | 6 %result = sdiv i8 %dividend, %divisor 16 %result = srem i8 %dividend, %divisor 26 %result = udiv i8 %dividend, %divisor 36 %result = urem i8 %dividend, %divisor 46 %result = sdiv i16 %dividend, %divisor 56 %result = srem i16 %dividend, %divisor 66 %result = udiv i16 %dividend, %divisor 76 %result = urem i16 %dividend, %divisor 86 %result = sdiv i32 %dividend, %divisor 96 %result = srem i32 %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
|
| H A D | phys_subreg_coalesce-2.ll | 21 %indvar = phi i32 [ 0, %forcond.preheader ], [ %divisor.02, %forbody ] ; <i32> [#uses=3] 23 %divisor.02 = add i32 %indvar, 1 ; <i32> [#uses=2] 26 %div = udiv i32 %mul, %divisor.02 ; <i32> [#uses=2]
|
| /llvm-project-15.0.7/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() 136 divisor.all <<= shift; in __udivmodti4() 150 dividend.all -= divisor.all & s; in __udivmodti4() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/PowerPC/ |
| H A D | builtins-ppc-xlcompat-macros.c | 103 long long testdivde(long long dividend, long long divisor) { in testdivde() argument 104 return __divde(dividend, divisor); in testdivde() 110 unsigned long long testdivdeu(unsigned long long dividend, unsigned long long divisor) { in testdivdeu() argument 111 return __divdeu(dividend, divisor); in testdivdeu() 122 int testdivwe(int dividend, int divisor) { in testdivwe() argument 123 return __divwe(dividend, divisor); in testdivwe() 133 unsigned int testdivweu(unsigned int dividend, unsigned int divisor) { in testdivweu() argument 134 return __divweu(dividend, divisor); in testdivweu()
|
| H A D | builtins-ppc-xlcompat-error.c | 90 long long testdivde(long long dividend, long long divisor) { in testdivde() argument 91 …return __divde(dividend, divisor); //expected-error {{this builtin is only available on 64-bit tar… in testdivde() 94 unsigned long long testdivdeu(unsigned long long dividend, unsigned long long divisor) { in testdivdeu() argument 95 …return __divdeu(dividend, divisor); //expected-error {{this builtin is only available on 64-bit ta… in testdivdeu()
|
| /llvm-project-15.0.7/mlir/lib/Analysis/Presburger/ |
| H A D | Utils.cpp | 26 if (divisor == 0 || dividend.empty()) in normalizeDivisionByGCD() 49 divisor /= gcd; in normalizeDivisionByGCD() 103 divisor = cst.atIneq(lbIneq, pos); in getDivRepr() 120 int64_t c = divisor - 1 - constantSum; in getDivRepr() 124 if (!(0 <= c && c <= divisor - 1)) // NOLINT in getDivRepr() 138 normalizeDivisionByGCD(expr, divisor); in getDivRepr() 171 divisor = tempDiv * signDiv; in getDivRepr() 178 normalizeDivisionByGCD(expr, divisor); in getDivRepr() 299 ineq[localVarIdx] = -divisor; in getDivUpperBound() 311 ineq[localVarIdx] = divisor; in getDivLowerBound() [all …]
|
| /llvm-project-15.0.7/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-15.0.7/llvm/test/CodeGen/NVPTX/ |
| H A D | fast-math.ll | 155 %x = fdiv arcp float %a, %divisor 156 %y = fdiv arcp float %b, %divisor 166 %x = fdiv arcp float %a, %divisor 203 %x = fdiv float %a, %divisor 204 %y = fdiv float %b, %divisor 214 %x = fdiv float %a, %divisor 215 %y = fdiv float %b, %divisor 227 %x = fdiv float %a, %divisor 228 %y = fdiv float %b, %divisor 238 %x = fdiv float %a, %divisor [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/builtins/Unit/ |
| 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 | multc3_test.c | 49 long double _Complex divisor; in test__multc3() local 53 __real__ divisor = c; in test__multc3() local 54 __imag__ divisor = d; in test__multc3() local 59 switch (classify(divisor)) in test__multc3() 84 switch (classify(divisor)) in test__multc3() 111 switch (classify(divisor)) in test__multc3() 136 switch (classify(divisor)) in test__multc3() 161 switch (classify(divisor)) in test__multc3()
|
| H A D | divtc3_test.c | 54 long double _Complex divisor; in test__divtc3() local 58 __real__ divisor = c; in test__divtc3() local 59 __imag__ divisor = d; in test__divtc3() local 64 switch (classify(divisor)) in test__divtc3() 89 switch (classify(divisor)) in test__divtc3() 120 switch (classify(divisor)) in test__divtc3() 145 switch (classify(divisor)) in test__divtc3() 170 switch (classify(divisor)) in test__divtc3()
|
| 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 | 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 | 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()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | srem-seteq-vec-nonsplat.ll | 34 ; One all-ones divisor in odd divisor 270 ; One one divisor in odd divisor 293 ; One one divisor in even divisor 438 ; One all-ones divisor and power-of-two divisor divisor in odd divisor 466 ; One all-ones divisor and power-of-two divisor divisor in even divisor 494 ; One all-ones divisor and power-of-two divisor divisor in odd+even divisor 524 ; One all-ones divisor and one one divisor in odd divisor 547 ; One all-ones divisor and one one divisor in even divisor 603 ; One power-of-two divisor divisor and one divisor in odd divisor 631 ; One power-of-two divisor divisor and one divisor in even divisor [all …]
|
| H A D | urem-seteq-vec-nonsplat.ll | 32 ; One all-ones divisor in odd divisor 250 ; One one divisor in odd divisor 270 ; One one divisor in even divisor 401 ; One all-ones divisor and power-of-two divisor divisor in odd divisor 427 ; One all-ones divisor and power-of-two divisor divisor in even divisor 453 ; One all-ones divisor and power-of-two divisor divisor in odd+even divisor 481 ; One all-ones divisor and one one divisor in odd divisor 500 ; One all-ones divisor and one one divisor in even divisor 554 ; One power-of-two divisor divisor and one divisor in odd divisor 580 ; One power-of-two divisor divisor and one divisor in even divisor [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | regalloc-GR128.ll | 6 define void @test0(i64 %dividend, i64 %divisor) { 7 %rem = urem i64 %dividend, %divisor 13 define i64 @test1(i64 %dividend, i64 %divisor) { 14 %rem = urem i64 %dividend, %divisor
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | donotoptimize_assembly_test.cc | 109 int divisor = 2; in test_div_by_two() local 110 benchmark::DoNotOptimize(divisor); in test_div_by_two() 111 return input / divisor; in test_div_by_two()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/ |
| H A D | integer_divide_by_zero.cpp | 12 volatile int divisor = 0; in main() local 13 return numerator / divisor; in main()
|
| /llvm-project-15.0.7/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-15.0.7/flang/include/flang/Evaluate/ |
| H A D | integer.h | 872 if (divisor.IsZero()) { in MultiplyUnsigned() 885 remainder = remainder.SubtractSigned(divisor).value; in MultiplyUnsigned() 897 Ordering divisorOrdering{divisor.CompareToZeroSigned()}; in MultiplyUnsigned() 900 auto negated{divisor.Negate()}; in MultiplyUnsigned() 903 if (CompareUnsigned(divisor) == Ordering::Equal) { in MultiplyUnsigned() 909 divisor = negated.value; in MultiplyUnsigned() 925 divisor.CompareUnsigned(Integer{1}) == Ordering::Equal) { in MultiplyUnsigned() 935 QuotientWithRemainder result{dividend.DivideUnsigned(divisor)}; in MultiplyUnsigned() 947 constexpr ValueWithOverflow MODULO(const Integer &divisor) const { in MultiplyUnsigned() argument 948 bool negativeDivisor{divisor.IsNegative()}; in MultiplyUnsigned() [all …]
|