Home
last modified time | relevance | path

Searched refs:sdiv (Results 1 – 25 of 223) sorted by relevance

123456789

/external/llvm/test/Analysis/CostModel/X86/
Ddiv.ll7 ; SSE2: cost of 320 {{.*}} sdiv
8 %a0 = sdiv <16 x i8> undef, undef
9 ; SSE2: cost of 160 {{.*}} sdiv
10 %a1 = sdiv <8 x i16> undef, undef
11 ; SSE2: cost of 80 {{.*}} sdiv
12 %a2 = sdiv <4 x i32> undef, undef
13 ; SSE2: cost of 40 {{.*}} sdiv
14 %a3 = sdiv <2 x i32> undef, undef
21 ; AVX2: cost of 640 {{.*}} sdiv
22 %a0 = sdiv <32 x i8> undef, undef
[all …]
/external/llvm/test/Analysis/Lint/
Dcheck-zero-divide.ll4 %b = sdiv <2 x i32> %a, <i32 5, i32 8>
25 ; CHECK-NEXT: %b = sdiv i32 %a, 0
26 %b = sdiv i32 %a, 0
32 ; CHECK-NEXT: %b = sdiv i32 %a, 0
33 %b = sdiv i32 %a, zeroinitializer
39 ; CHECK-NEXT: %b = sdiv <2 x i32> %a, <i32 0, i32 5>
40 %b = sdiv <2 x i32> %a, <i32 0, i32 5>
46 ; CHECK-NEXT: %b = sdiv <2 x i32> %a, <i32 4, i32 0>
47 %b = sdiv <2 x i32> %a, <i32 4, i32 0>
53 ; CHECK-NEXT: %b = sdiv <2 x i32> %a, zeroinitializer
[all …]
/external/llvm/test/CodeGen/AArch64/
Darm64-neon-mul-div.ll104 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
105 %tmp3 = sdiv <1 x i8> %A, %B;
111 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
112 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
113 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
114 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
115 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
116 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
117 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
118 ; CHECK: sdiv {{w[0-9]+}}, {{w[0-9]+}}, {{w[0-9]+}}
[all …]
Darm64-arith.ll33 ; CHECK: sdiv w0, w0, w1
35 %sdiv = sdiv i32 %a, %b
36 ret i32 %sdiv
42 ; CHECK: sdiv x0, x0, x1
44 %sdiv = sdiv i64 %a, %b
45 ret i64 %sdiv
169 ; CHECK: sdiv w0, w0, w1
171 %sdiv = call i32 @llvm.aarch64.sdiv.i32(i32 %a, i32 %b)
172 ret i32 %sdiv
178 ; CHECK: sdiv x0, x0, x1
[all …]
/external/openssl/crypto/bn/
Dbn_div.c185 BIGNUM *tmp,wnum,*snum,*sdiv,*res; in BN_div() local
229 sdiv=BN_CTX_get(ctx); in BN_div()
233 if (sdiv == NULL || res == NULL || tmp == NULL || snum == NULL) in BN_div()
238 if (!(BN_lshift(sdiv,divisor,norm_shift))) goto err; in BN_div()
239 sdiv->neg=0; in BN_div()
250 if (snum->top <= sdiv->top+1) in BN_div()
252 if (bn_wexpand(snum, sdiv->top + 2) == NULL) goto err; in BN_div()
253 for (i = snum->top; i < sdiv->top + 2; i++) snum->d[i] = 0; in BN_div()
254 snum->top = sdiv->top + 2; in BN_div()
264 div_n=sdiv->top; in BN_div()
[all …]
/external/llvm/test/MC/ARM/
Didiv.s13 sdiv r1, r2, r3
15 @ A15-ARM: sdiv r1, r2, r3 @ encoding: [0x12,0xf3,0x11,0xe7]
17 @ A15-THUMB: sdiv r1, r2, r3 @ encoding: [0x92,0xfb,0xf3,0xf1]
20 @ A15-ARM-NOTHUMBHWDIV: sdiv r1, r2, r3 @ encoding: [0x12,0xf3,0x11,0xe7]
22 @ A15-THUMB-NOARMHWDIV: sdiv r1, r2, r3 @ encoding: [0x92,0xfb,0xf3,0xf1]
25 @ ARMV8: sdiv r1, r2, r3 @ encoding: [0x12,0xf3,0x11,0xe7]
27 @ THUMBV8: sdiv r1, r2, r3 @ encoding: [0x92,0xfb,0xf3,0xf1]
30 @ ARMV8-NOTHUMBHWDIV: sdiv r1, r2, r3 @ encoding: [0x12,0xf3,0x11,0xe7]
32 @ THUMBV8-NOTHUMBHWDIV: sdiv r1, r2, r3 @ encoding: [0x92,0xfb,0xf3,0xf1]
Dinvalid-idiv.s10 sdiv r1, r2, r3
13 @ ARM-A15: sdiv r1, r2, r3
17 @ THUMB-A15: sdiv r1, r2, r3
22 @ ARM: sdiv r1, r2, r3
26 @ THUMB: sdiv r1, r2, r3
/external/llvm/test/Analysis/CostModel/ARM/
Ddivrem.ll5 ; CHECK: cost of 40 {{.*}} sdiv
7 %1 = sdiv <2 x i8> %a, %b
12 ; CHECK: cost of 40 {{.*}} sdiv
14 %1 = sdiv <2 x i16> %a, %b
19 ; CHECK: cost of 40 {{.*}} sdiv
21 %1 = sdiv <2 x i32> %a, %b
26 ; CHECK: cost of 40 {{.*}} sdiv
28 %1 = sdiv <2 x i64> %a, %b
33 ; CHECK: cost of 10 {{.*}} sdiv
35 %1 = sdiv <4 x i8> %a, %b
[all …]
/external/llvm/test/Transforms/InstCombine/
Dexact.ll4 ; CHECK: sdiv i32 %x, 8
6 %y = sdiv i32 %x, 8
13 %y = sdiv exact i32 %x, 8
22 %y = sdiv i32 %x, 3
30 %y = sdiv exact i32 %x, 3
40 %y = sdiv i32 %x, 3
49 %y = sdiv exact i32 %x, 3
100 ; Make sure we don't transform the ashr here into an sdiv
127 %A = sdiv exact i64 %X, 5 ; X/5 == 0 --> x == 0
135 %A = sdiv exact i64 %X, 5 ; X/5 == 1 --> x == 5
[all …]
Dpreserve-sminmax.ll3 ; Instcombine normally would fold the sdiv into the comparison,
4 ; making "icmp slt i32 %h, 2", but in this case the sdiv has
10 %sd = sdiv i32 %h, 2
16 ; CHECK: %sd = sdiv i32 %h, 2
22 %sd = sdiv i32 %h, 2
28 ; CHECK: %sd = sdiv i32 %h, 2
D2008-02-16-SDivOverflow.ll5 %tmp1 = sdiv i32 %a, -1431655765
6 %tmp2 = sdiv i32 %tmp1, 3
11 %tmp1 = sdiv i8 %a, 64
12 %tmp2 = sdiv i8 %tmp1, 3
D2008-02-16-SDivOverflow2.ll1 ; RUN: opt < %s -instcombine -S | grep "sdiv i8 \%a, 9"
5 %tmp1 = sdiv i8 %a, -3
6 %tmp2 = sdiv i8 %tmp1, -3
Dsink_instruction.ll9 %tmp.2 = sdiv i32 %A, %B ; <i32> [#uses=1]
17 ; CHECK: sdiv i32
26 ; CHECK-NOT: sdiv i32
34 %1 = sdiv i32 %0, %x_addr.17 ; <i32> [#uses=1]
41 ; CHECK-NEXT: sdiv i32
Ddiv.ll6 %B = sdiv i32 %A, 1 ; <i32> [#uses=1]
22 %B = sdiv i32 0, %A ; <i32> [#uses=1]
30 %B = sdiv i32 %A, -1 ; <i32> [#uses=1]
108 %tmp3 = sdiv i32 %x, %x ; 1
145 %div = sdiv <2 x i64> %neg, <i64 3, i64 4>
148 ; CHECK-NEXT: sdiv <2 x i64> %x, <i64 -3, i64 -4>
153 %div = sdiv <2 x i64> %x, <i64 -1, i64 -1>
170 %A = sdiv i32 1, %x
/external/llvm/test/CodeGen/R600/
Dsdiv.ll4 ; The code generated by sdiv is long and complex and may frequently change.
8 ; opcodes generated by the sdiv lowering was being legalized and optimized to:
19 %result = sdiv i32 %num, %den
27 %result = sdiv i32 %num, 4
47 %result = sdiv i32 %num, 3435
56 %result = sdiv <2 x i32> %num, %den
63 %result = sdiv <2 x i32> %num, <i32 4, i32 4>
72 %result = sdiv <4 x i32> %num, %den
79 %result = sdiv <4 x i32> %num, <i32 4, i32 4, i32 4, i32 4>
86 ; %result = sdiv i64 %a, %b
[all …]
/external/llvm/test/CodeGen/X86/
Dvec_sdiv_to_shift.ll12 %0 = sdiv <8 x i16> %var, <i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32>
21 %0 = sdiv <4 x i32> %var, <i32 0, i32 0, i32 0, i32 0>
33 %0 = sdiv <4 x i32> %var, <i32 16, i32 16, i32 16, i32 16>
46 %0 = sdiv <4 x i32> %var, <i32 -16, i32 -16, i32 -16, i32 -16>
58 %0 = sdiv <8 x i32> %var, <i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64>
70 …%a0 = sdiv <16 x i16> %var, <i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4,…
78 %y = sdiv <4 x i32> %x, <i32 2, i32 0, i32 0, i32 0>
Datom-bypass-slow-division.ll12 %result = sdiv i32 %a, %b
40 %resultdiv = sdiv i32 %a, %b
54 %resultidiv = sdiv i32 %a, %b
63 %resultdiv = sdiv i32 256, 4
72 %resultdiv = sdiv i32 %a, 33
90 %resultdiv = sdiv i32 %a, 33
101 %resultdiv = sdiv i32 4, %a
110 %resultdiv = sdiv i32 4, %a
Di128-sdiv.ll8 %tmp = sdiv i128 %x, 73786976294838206464
15 %tmp = sdiv i128 %x, -73786976294838206464
22 %tmp = sdiv i128 %x, -73786976294838206467
/external/chromium_org/third_party/boringssl/src/crypto/bn/
Ddiv.c118 BIGNUM *tmp, wnum, *snum, *sdiv, *res; in BN_div() local
157 sdiv = BN_CTX_get(ctx); in BN_div()
163 if (sdiv == NULL || res == NULL || tmp == NULL || snum == NULL) { in BN_div()
169 if (!(BN_lshift(sdiv, divisor, norm_shift))) { in BN_div()
172 sdiv->neg = 0; in BN_div()
184 if (snum->top <= sdiv->top + 1) { in BN_div()
185 if (bn_wexpand(snum, sdiv->top + 2) == NULL) { in BN_div()
188 for (i = snum->top; i < sdiv->top + 2; i++) { in BN_div()
191 snum->top = sdiv->top + 2; in BN_div()
201 div_n = sdiv->top; in BN_div()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dint-div-04.ll14 %div = sdiv i64 %a, %b
39 %div = sdiv i64 %a, %b
53 %div = sdiv i64 %a, %b
80 %div = sdiv i64 %a, %b
189 %div0 = sdiv i64 %ret, %val0
190 %div1 = sdiv i64 %div0, %val1
191 %div2 = sdiv i64 %div1, %val2
192 %div3 = sdiv i64 %div2, %val3
193 %div4 = sdiv i64 %div3, %val4
194 %div5 = sdiv i64 %div4, %val5
[all …]
Dint-div-01.ll14 %div = sdiv i32 %a, %b
41 %div = sdiv i32 %a, %b
56 %div = sdiv i32 %a, %b
73 %div = sdiv i32 %a, %b
87 %div = sdiv i32 %a, %b
116 %div = sdiv i32 %a, %b
205 %div = sdiv i32 %a, %b
239 %div0 = sdiv i32 %ret, %val0
240 %div1 = sdiv i32 %div0, %val1
241 %div2 = sdiv i32 %div1, %val2
[all …]
/external/llvm/test/CodeGen/PowerPC/
Ddiv-2.ll6 %Z = sdiv i32 %Y, 4 ; <i32> [#uses=1]
13 %Z = sdiv i32 %Y, 4 ; <i32> [#uses=1]
20 %Z = sdiv i32 %Y, 4 ; <i32> [#uses=1]
27 %Z = sdiv i32 %Y, 2 ; <i32> [#uses=1]
/external/llvm/test/Transforms/InstSimplify/
D2011-02-01-Vector.ll3 define <2 x i32> @sdiv(<2 x i32> %x) {
4 ; CHECK-LABEL: @sdiv(
5 %div = sdiv <2 x i32> %x, <i32 1, i32 1>
/external/llvm/test/CodeGen/Thumb2/
Ddiv.ll15 ; CHECK-THUMBV7M: sdiv
17 ; CHECK-HWDIV: sdiv
18 %tmp1 = sdiv i32 %a, %b ; <i32> [#uses=1]
39 ; CHECK-THUMBV7M: sdiv
41 ; CHECK-HWDIV: sdiv
/external/llvm/test/Transforms/SimplifyCFG/
D2009-01-19-UnconditionalTrappingConstantExpr.ll10 ; CHECK: sdiv
17 %tmp26 = icmp sgt i32 sdiv (i32 -32768, i32 ptrtoint (i32* @G to i32)), 0
29 ; CHECK: sdiv
35 br i1 icmp sgt (i32 sdiv (i32 32767, i32 ptrtoint (i32* @G to i32)), i32 0), label %bb6, label %bb7

123456789