Home
last modified time | relevance | path

Searched refs:trunc (Results 1 – 25 of 1296) sorted by relevance

12345678910>>...52

/external/v8/test/mjsunit/es6/
Dmath-trunc.js28 assertEquals("Infinity", String(1/Math.trunc(0)));
29 assertEquals("-Infinity", String(1/Math.trunc(-0)));
30 assertEquals("Infinity", String(1/Math.trunc(Math.PI/4)));
31 assertEquals("-Infinity", String(1/Math.trunc(-Math.sqrt(2)/2)));
32 assertEquals(100, Math.trunc(100));
33 assertEquals(-199, Math.trunc(-199));
34 assertEquals(100, Math.trunc(100.1));
35 assertTrue(isNaN(Math.trunc("abc")));
36 assertTrue(isNaN(Math.trunc({})));
37 assertEquals(0, Math.trunc([]));
[all …]
/external/llvm/unittests/ADT/
DAPSIntTest.cpp108 EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(8)) < 0); in TEST()
109 EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(7)) > 0); in TEST()
110 EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(7)) == 0); in TEST()
111 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(8)) < 0); in TEST()
112 EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(-7)) > 0); in TEST()
113 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0); in TEST()
114 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0); in TEST()
115 EXPECT_TRUE(APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0); in TEST()
116 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0); in TEST()
117 EXPECT_TRUE(APSInt::compareValues(S(7), S(8).trunc(32)) < 0); in TEST()
[all …]
/external/llvm/test/CodeGen/ARM/
D2013-04-18-load-overlap-PR14824.ll17 %data.i.i677.48.extract.trunc = trunc i512 %data.i.i677.48.extract.shift to i64
18 %s123 = insertelement <8 x i64> undef, i64 %data.i.i677.48.extract.trunc, i32 0
20 %data.i.i677.32.extract.trunc = trunc i512 %data.i.i677.32.extract.shift to i64
21 %s124 = insertelement <8 x i64> %s123, i64 %data.i.i677.32.extract.trunc, i32 1
23 %data.i.i677.16.extract.trunc = trunc i512 %data.i.i677.16.extract.shift to i64
24 %s125 = insertelement <8 x i64> %s124, i64 %data.i.i677.16.extract.trunc, i32 2
26 %data.i.i677.56.extract.trunc = trunc i512 %data.i.i677.56.extract.shift to i64
27 %s126 = insertelement <8 x i64> %s125, i64 %data.i.i677.56.extract.trunc, i32 3
29 %data.i.i677.24.extract.trunc = trunc i512 %data.i.i677.24.extract.shift to i64
30 %s127 = insertelement <8 x i64> %s126, i64 %data.i.i677.24.extract.trunc, i32 4
[all …]
/external/llvm/test/CodeGen/R600/
Dno-shrink-extloads.ll13 %trunc = trunc i32 %arg to i16
14 store i16 %trunc, i16 addrspace(1)* %out
29 %trunc = trunc i32 %load to i16
30 store i16 %trunc, i16 addrspace(1)* %gep.out
38 %trunc = trunc i32 %arg to i8
39 store i8 %trunc, i8 addrspace(1)* %out
51 %trunc = trunc i32 %load to i8
52 store i8 %trunc, i8 addrspace(1)* %gep.out
60 %trunc = trunc i32 %arg to i1
61 store i1 %trunc, i1 addrspace(1)* %out
[all …]
Dtrunc-store-i1.ll11 %trunc = trunc i32 %val to i1
12 store i1 %trunc, i1 addrspace(1)* %out, align 1
19 %trunc = trunc i64 %val to i1
20 store i1 %trunc, i1 addrspace(1)* %out, align 1
30 %trunc = trunc i16 %val to i1
31 store i1 %trunc, i1 addrspace(1)* %out, align 1
Dtrunc.ll17 %result = trunc i64 %in to i32 store i32 %result, i32 addrspace(1)* %out, align 4
29 %result = trunc i64 %b to i32
46 %result = trunc i64 %b to i32
57 %trunc = trunc i32 %a to i1
58 %result = select i1 %trunc, i32 1, i32 0
67 %trunc = trunc i32 %a to i1
68 %result = select i1 %trunc, i32 1, i32 0
79 %trunc = trunc i64 %x to i1
80 %sel = select i1 %trunc, i32 63, i32 -12
96 %trunc = trunc i64 %x to i1
[all …]
/external/tcpdump/
Dprint-ip6opts.c86 goto trunc; in ip6_sopt_print()
89 goto trunc; in ip6_sopt_print()
98 goto trunc; in ip6_sopt_print()
105 goto trunc; in ip6_sopt_print()
112 goto trunc; in ip6_sopt_print()
119 goto trunc; in ip6_sopt_print()
126 goto trunc; in ip6_sopt_print()
134 trunc: in ip6_sopt_print()
153 goto trunc; in ip6_opt_print()
156 goto trunc; in ip6_opt_print()
[all …]
Dprint-cdp.c102 goto trunc; in cdp_print()
111 goto trunc; in cdp_print()
118 goto trunc; in cdp_print()
140 goto trunc; in cdp_print()
168 goto trunc; in cdp_print()
211 goto trunc; in cdp_print()
234 trunc: in cdp_print()
267 goto trunc; in cdp_print_addr()
274 goto trunc; in cdp_print_addr()
287 goto trunc; in cdp_print_addr()
[all …]
Dprint-dvmrp.c98 goto trunc; in dvmrp_print()
106 goto trunc; in dvmrp_print()
117 goto trunc; in dvmrp_print()
136 goto trunc; in dvmrp_print()
142 goto trunc; in dvmrp_print()
148 goto trunc; in dvmrp_print()
154 goto trunc; in dvmrp_print()
163 trunc: in dvmrp_print()
221 trunc: in print_report()
254 trunc: in print_probe()
[all …]
Dprint-lwres.c204 goto trunc; in lwres_printname()
213 trunc: in lwres_printname()
224 goto trunc; in lwres_printnamelen()
228 goto trunc; in lwres_printnamelen()
231 trunc: in lwres_printnamelen()
244 goto trunc; in lwres_printbinlen()
247 goto trunc; in lwres_printbinlen()
253 trunc: in lwres_printbinlen()
293 trunc: in lwres_printaddr()
393 goto trunc; in lwres_print()
[all …]
Dprint-mpcp.c155 goto trunc; in mpcp_print()
174 goto trunc; in mpcp_print()
185 goto trunc; in mpcp_print()
195 goto trunc; in mpcp_print()
202 goto trunc; in mpcp_print()
209 goto trunc; in mpcp_print()
220 goto trunc; in mpcp_print()
234 goto trunc; in mpcp_print()
243 goto trunc; in mpcp_print()
255 goto trunc; in mpcp_print()
[all …]
Dprint-domain.c119 trunc: in blabel_print()
615 goto trunc; in ns_print()
618 goto trunc; in ns_print()
625 goto trunc; in ns_print()
629 goto trunc; in ns_print()
633 goto trunc; in ns_print()
639 goto trunc; in ns_print()
643 goto trunc; in ns_print()
647 goto trunc; in ns_print()
651 goto trunc; in ns_print()
[all …]
Dprint-bgp.c513 trunc: in decode_prefix4()
566 trunc: in decode_labeled_prefix4()
602 trunc: in bgp_vpn_ip_print()
661 trunc: in bgp_vpn_sg_print()
742 trunc: in decode_rt_routing_info()
780 trunc: in decode_labeled_vpn_prefix4()
828 trunc: in decode_mdt_vpn_nlri()
933 trunc: in decode_multicast_vpn()
1042 goto trunc; in decode_labeled_vpn_l2()
1045 trunc: in decode_labeled_vpn_l2()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dand-06.ll14 %trunc = trunc i32 %and to i8
15 store i8 %trunc, i8 *%ptr
27 %trunc = trunc i64 %and to i8
28 store i8 %trunc, i8 *%ptr
40 %trunc = trunc i32 %and to i8
41 store i8 %trunc, i8 *%ptr
53 %trunc = trunc i64 %and to i8
54 store i8 %trunc, i8 *%ptr
66 %trunc = trunc i32 %and to i8
67 store i8 %trunc, i8 *%ptr
[all …]
Dxor-06.ll14 %trunc = trunc i32 %xor to i8
15 store i8 %trunc, i8 *%ptr
27 %trunc = trunc i64 %xor to i8
28 store i8 %trunc, i8 *%ptr
40 %trunc = trunc i32 %xor to i8
41 store i8 %trunc, i8 *%ptr
53 %trunc = trunc i64 %xor to i8
54 store i8 %trunc, i8 *%ptr
66 %trunc = trunc i32 %xor to i8
67 store i8 %trunc, i8 *%ptr
[all …]
Dor-06.ll14 %trunc = trunc i32 %or to i8
15 store i8 %trunc, i8 *%ptr
27 %trunc = trunc i64 %or to i8
28 store i8 %trunc, i8 *%ptr
40 %trunc = trunc i32 %or to i8
41 store i8 %trunc, i8 *%ptr
53 %trunc = trunc i64 %or to i8
54 store i8 %trunc, i8 *%ptr
66 %trunc = trunc i32 %or to i8
67 store i8 %trunc, i8 *%ptr
[all …]
Dint-conv-11.ll44 %trunc0 = trunc i32 %val0 to i8
45 %trunc1 = trunc i32 %val1 to i8
46 %trunc2 = trunc i32 %val2 to i8
47 %trunc3 = trunc i32 %val3 to i8
48 %trunc4 = trunc i32 %val4 to i8
49 %trunc5 = trunc i32 %val5 to i8
50 %trunc6 = trunc i32 %val6 to i8
51 %trunc7 = trunc i32 %val7 to i8
52 %trunc8 = trunc i32 %val8 to i8
53 %trunc9 = trunc i32 %val9 to i8
[all …]
Dfp-move-05.ll13 %trunc = fptrunc fp128 %val to double
14 ret double %trunc
26 %trunc = fptrunc fp128 %val to double
27 ret double %trunc
39 %trunc = fptrunc fp128 %val to double
40 ret double %trunc
52 %trunc = fptrunc fp128 %val to double
53 ret double %trunc
65 %trunc = fptrunc fp128 %val to double
66 ret double %trunc
[all …]
/external/llvm/test/Analysis/ScalarEvolution/
D2009-04-22-TruncCast.ll4 ; CHECK-NOT: (trunc i{{.*}}ext
8 %B = trunc i32 %A to i16
13 ; CHECK-NOT: (trunc i{{.*}}ext
17 %B = trunc i32 %A to i8
22 ; CHECK-NOT: (trunc i{{.*}}ext
26 %B = trunc i32 %A to i16
31 ; CHECK-NOT: (trunc i{{.*}}ext
35 %B = trunc i32 %A to i16
40 ; CHECK-NOT: (trunc i{{.*}}ext
44 %B = trunc i32 %A to i8
[all …]
/external/llvm/test/CodeGen/XCore/
Dresources_combine.ll18 %trunc = and i32 %result, 255
19 ret i32 %trunc
27 %trunc = and i32 %result, 255
28 ret i32 %trunc
36 %trunc = and i32 %result, 1
37 ret i32 %trunc
45 %trunc = and i32 %result, 7
46 ret i32 %trunc
54 %trunc = and i32 %result, 65535
63 %trunc = and i32 %value, 255
[all …]
/external/llvm/test/ExecutionEngine/MCJIT/
Dtest-cast.ll40 trunc i16 -1 to i8 ; <i8>:33 [#uses=0]
41 trunc i16 255 to i8 ; <i8>:34 [#uses=0]
49 trunc i16 1 to i8 ; <i8>:42 [#uses=0]
50 trunc i16 255 to i8 ; <i8>:43 [#uses=0]
58 trunc i32 -6 to i8 ; <i8>:51 [#uses=0]
59 trunc i32 6 to i8 ; <i8>:52 [#uses=0]
60 trunc i32 6 to i16 ; <i16>:53 [#uses=0]
67 trunc i32 7 to i8 ; <i8>:60 [#uses=0]
68 trunc i32 8 to i8 ; <i8>:61 [#uses=0]
69 trunc i32 9 to i16 ; <i16>:62 [#uses=0]
[all …]
/external/llvm/test/ExecutionEngine/OrcMCJIT/
Dtest-cast.ll40 trunc i16 -1 to i8 ; <i8>:33 [#uses=0]
41 trunc i16 255 to i8 ; <i8>:34 [#uses=0]
49 trunc i16 1 to i8 ; <i8>:42 [#uses=0]
50 trunc i16 255 to i8 ; <i8>:43 [#uses=0]
58 trunc i32 -6 to i8 ; <i8>:51 [#uses=0]
59 trunc i32 6 to i8 ; <i8>:52 [#uses=0]
60 trunc i32 6 to i16 ; <i16>:53 [#uses=0]
67 trunc i32 7 to i8 ; <i8>:60 [#uses=0]
68 trunc i32 8 to i8 ; <i8>:61 [#uses=0]
69 trunc i32 9 to i16 ; <i16>:62 [#uses=0]
[all …]
/external/llvm/test/CodeGen/X86/
Dvec_anyext.ll6 %G = trunc <4 x i32> %F to <4 x i16>
8 %Y = trunc <4 x i32> %H to <4 x i16>
16 %G = trunc <4 x i64> %F to <4 x i16>
18 %Y = trunc <4 x i64> %H to <4 x i16>
26 %G = trunc <4 x i64> %F to <4 x i32>
28 %Y = trunc <4 x i64> %H to <4 x i32>
35 %G = trunc <4 x i16> %F to <4 x i8>
37 %Y = trunc <4 x i16> %H to <4 x i8>
44 %G = trunc <4 x i32> %F to <4 x i8>
46 %Y = trunc <4 x i32> %H to <4 x i8>
[all …]
D2013-01-09-DAGCombineBug.ll51 … i1 icmp ult (i64 xor (i64 zext (i1 trunc (i192 lshr (i192 or (i192 shl (i192 zext (i64 trunc (i12…
57trunc (i192 lshr (i192 or (i192 shl (i192 zext (i64 trunc (i128 lshr (i128 trunc (i384 lshr (i384 …
60trunc (i192 lshr (i192 or (i192 and (i192 or (i192 shl (i192 zext (i64 trunc (i128 lshr (i128 trun…
/external/llvm/test/Transforms/InstCombine/
Dfpcast.ll59 %trunc = fptrunc <1 x double> %frem to <1 x float>
60 ret <1 x float> %trunc
63 ; CHECK-NEXT: %[[trunc:.*]] = fptrunc <1 x double> %[[frem]] to <1 x float>
64 ; CHECK-NEXT: ret <1 x float> %trunc
69 %trunc = fptrunc double %frem to float
70 ret float %trunc
73 ; CHECK-NEXT: %[[trunc:.*]] = fptrunc double %frem to float
74 ; CHECK-NEXT: ret float %trunc
80 %trunc = fptrunc double %frem to float
81 ret float %trunc
[all …]

12345678910>>...52