Home
last modified time | relevance | path

Searched refs:dividend (Results 1 – 25 of 39) sorted by relevance

12

/minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/
H A Dfast-isel-divrem.ll4 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 Dfast-isel-divrem-x86-64.ll3 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 Ddiv8.ll6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp {
8 %dividend.addr = alloca i8, align 2
11 store i8 %dividend, i8* %dividend.addr, align 2
13 %tmp = load i8* %dividend.addr, align 2
/minix3/common/lib/libc/arch/vax/gen/
H A Dudiv.S51 jlss Lhard # big dividend: extended division
52 divl2 %r2,%r0 # small divisor and dividend: signed division
60 jgequ Lone # if dividend is as big or bigger, return 1
73 jlss La_hard # big dividend: extended division
74 divl2 %r2,%r0 # small divisor and dividend: signed division
84 jgequ La_one # if dividend is as big or bigger, return 1
H A Durem.S51 jlss Lhard # big dividend: need extended division
52 divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
63 movl DIVIDEND,%r0 # if divisor is bigger, return dividend
73 jlss La_hard # big dividend: need extended division
74 divl3 %r2,%r0,%r1 # small divisor and dividend: signed modulus
86 jcs La_dividend # if divisor is bigger, leave dividend alone
/minix3/common/lib/libc/arch/m68k/gen/
H A Dudivsi3.S57 movel 8(%sp), %d1 | load dividend
59 | first, we divide the divisor and dividend by two until
71 movew %d1, %d2 | save low(dividend)
73 swap %d1 | %d1 = dividend >> 16
76 movew %d2, %d1 | concat(remainder, low(dividend))
88 | (dividend - divisor) <= dividendB <= dividend
95 | divisor and subtract the result from the original dividend.
121 movel 8(%sp), %d1 | load original dividend
H A Ddivsi3.S56 movel 4(%sp), %d1 | load the dividend
58 negl 4(%sp) | store abs(dividend)
63 bpl 3f | branch if sgn(divisor) == sgn(dividend)
H A Dmodsi3.S66 1: movel (%sp), %d0 | load the dividend
69 negl 4(%sp) | store abs(dividend)
/minix3/lib/libc/arch/sparc/gen/
H A Ddivrem.m447 * Input: dividend and divisor in %o0 and %o1 respectively.
64 * R the remainder so far, initially the dividend
71 * Current estimate for non-large dividend is
73 * A large dividend is one greater than 2^(31-TOPBITS) and takes a
83 define(dividend, `%o0') macro
133 orcc divisor, dividend, %g0 ! either negative?
136 `xor divisor, dividend, SIGN',
137 `mov dividend, SIGN') ! compute sign in any case
140 tst dividend
141 ! divisor is definitely negative; dividend might also be negative
[all …]
/minix3/sys/external/bsd/compiler_rt/dist/test/builtins/Unit/
H A Ddivdc3_test.c54 double _Complex dividend; in test__divdc3() local
57 __real__ dividend = a; in test__divdc3() local
58 __imag__ dividend = b; in test__divdc3() local
62 switch (classify(dividend)) in test__divdc3()
H A Ddivxc3_test.c57 long double _Complex dividend; in test__divxc3() local
60 __real__ dividend = a; in test__divxc3() local
61 __imag__ dividend = b; in test__divxc3() local
65 switch (classify(dividend)) in test__divxc3()
H A Dmultc3_test.c57 long double _Complex dividend; in test__multc3() local
60 __real__ dividend = a; in test__multc3() local
61 __imag__ dividend = b; in test__multc3() local
65 switch (classify(dividend)) in test__multc3()
H A Ddivtc3_test.c58 long double _Complex dividend; in test__divtc3() local
61 __real__ dividend = a; in test__divtc3() local
62 __imag__ dividend = b; in test__divtc3() local
66 switch (classify(dividend)) in test__divtc3()
H A Ddivsc3_test.c54 float _Complex dividend; in test__divsc3() local
57 __real__ dividend = a; in test__divsc3() local
58 __imag__ dividend = b; in test__divsc3() local
62 switch (classify(dividend)) in test__divsc3()
H A Dmuldc3_test.c54 double _Complex dividend; in test__muldc3() local
57 __real__ dividend = a; in test__muldc3() local
58 __imag__ dividend = b; in test__muldc3() local
62 switch (classify(dividend)) in test__muldc3()
H A Dmulxc3_test.c57 long double _Complex dividend; in test__mulxc3() local
60 __real__ dividend = a; in test__mulxc3() local
61 __imag__ dividend = b; in test__mulxc3() local
65 switch (classify(dividend)) in test__mulxc3()
H A Dmulsc3_test.c54 float _Complex dividend; in test__mulsc3() local
57 __real__ dividend = a; in test__mulsc3() local
58 __imag__ dividend = b; in test__mulsc3() local
62 switch (classify(dividend)) in test__mulsc3()
/minix3/sys/external/bsd/compiler_rt/dist/test/Unit/
H A Dmultc3_test.c57 long double _Complex dividend; in test__multc3() local
60 __real__ dividend = a; in test__multc3() local
61 __imag__ dividend = b; in test__multc3() local
65 switch (classify(dividend)) in test__multc3()
H A Dmulxc3_test.c57 long double _Complex dividend; in test__mulxc3() local
60 __real__ dividend = a; in test__mulxc3() local
61 __imag__ dividend = b; in test__mulxc3() local
65 switch (classify(dividend)) in test__mulxc3()
H A Dmulsc3_test.c54 float _Complex dividend; in test__mulsc3() local
57 __real__ dividend = a; in test__mulsc3() local
58 __imag__ dividend = b; in test__mulsc3() local
62 switch (classify(dividend)) in test__mulsc3()
H A Dmuldc3_test.c54 double _Complex dividend; in test__muldc3() local
57 __real__ dividend = a; in test__muldc3() local
58 __imag__ dividend = b; in test__muldc3() local
62 switch (classify(dividend)) in test__muldc3()
H A Ddivxc3_test.c57 long double _Complex dividend; in test__divxc3() local
60 __real__ dividend = a; in test__divxc3() local
61 __imag__ dividend = b; in test__divxc3() local
65 switch (classify(dividend)) in test__divxc3()
H A Ddivdc3_test.c54 double _Complex dividend; in test__divdc3() local
57 __real__ dividend = a; in test__divdc3() local
58 __imag__ dividend = b; in test__divdc3() local
62 switch (classify(dividend)) in test__divdc3()
H A Ddivsc3_test.c54 float _Complex dividend; in test__divsc3() local
57 __real__ dividend = a; in test__divsc3() local
58 __imag__ dividend = b; in test__divsc3() local
62 switch (classify(dividend)) in test__divsc3()
H A Ddivtc3_test.c58 long double _Complex dividend; in test__divtc3() local
61 __real__ dividend = a; in test__divtc3() local
62 __imag__ dividend = b; in test__divtc3() local
66 switch (classify(dividend)) in test__divtc3()

12