Home
last modified time | relevance | path

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

12345678910>>...58

/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/SystemZ/
Dvec-and-03.ll11 %trunc = trunc <16 x i8> %val to <16 x i1>
12 %ret = zext <16 x i1> %trunc to <16 x i8>
22 %trunc = trunc <8 x i16> %val to <8 x i1>
23 %ret = zext <8 x i1> %trunc to <8 x i16>
33 %trunc = trunc <8 x i16> %val to <8 x i8>
34 %ret = zext <8 x i8> %trunc to <8 x i16>
44 %trunc = trunc <4 x i32> %val to <4 x i1>
45 %ret = zext <4 x i1> %trunc to <4 x i32>
55 %trunc = trunc <4 x i32> %val to <4 x i8>
56 %ret = zext <4 x i8> %trunc to <4 x i32>
[all …]
Dvec-move-17.ll8 %trunc = trunc <16 x i8> %val to <16 x i1>
9 store <16 x i1> %trunc, <16 x i1> *%ptr
16 %trunc = trunc <8 x i16> %val to <8 x i1>
17 store <8 x i1> %trunc, <8 x i1> *%ptr
27 %trunc = trunc <8 x i16> %val to <8 x i8>
28 store <8 x i8> %trunc, <8 x i8> *%ptr
35 %trunc = trunc <4 x i32> %val to <4 x i1>
36 store <4 x i1> %trunc, <4 x i1> *%ptr
47 %trunc = trunc <4 x i32> %val to <4 x i8>
48 store <4 x i8> %trunc, <4 x 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 …]
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 …]
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 …]
Dvec-shift-07.ll11 %trunc = trunc <16 x i8> %val to <16 x i1>
12 %ret = sext <16 x i1> %trunc to <16 x i8>
22 %trunc = trunc <8 x i16> %val to <8 x i1>
23 %ret = sext <8 x i1> %trunc to <8 x i16>
33 %trunc = trunc <8 x i16> %val to <8 x i8>
34 %ret = sext <8 x i8> %trunc to <8 x i16>
44 %trunc = trunc <4 x i32> %val to <4 x i1>
45 %ret = sext <4 x i1> %trunc to <4 x i32>
55 %trunc = trunc <4 x i32> %val to <4 x i8>
56 %ret = sext <4 x i8> %trunc to <4 x i32>
[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/CodeGen/AMDGPU/
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.c57 goto trunc; in ip6_sopt_print()
60 goto trunc; in ip6_sopt_print()
69 goto trunc; in ip6_sopt_print()
76 goto trunc; in ip6_sopt_print()
84 trunc: in ip6_sopt_print()
103 goto trunc; in ip6_opt_print()
106 goto trunc; in ip6_opt_print()
115 goto trunc; in ip6_opt_print()
122 goto trunc; in ip6_opt_print()
126 goto trunc; in ip6_opt_print()
[all …]
Dprint-cdp.c155 goto trunc; in cdp_print()
164 goto trunc; in cdp_print()
185 goto trunc; in cdp_print()
196 goto trunc; in cdp_print()
201 goto trunc; in cdp_print()
210 goto trunc; in cdp_print()
218 goto trunc; in cdp_print()
223 goto trunc; in cdp_print()
228 goto trunc; in cdp_print()
238 goto trunc; in cdp_print()
[all …]
Dprint-dvmrp.c91 goto trunc; in dvmrp_print()
99 goto trunc; in dvmrp_print()
110 goto trunc; in dvmrp_print()
129 goto trunc; in dvmrp_print()
135 goto trunc; in dvmrp_print()
141 goto trunc; in dvmrp_print()
147 goto trunc; in dvmrp_print()
156 trunc: in dvmrp_print()
215 trunc: in print_report()
246 trunc: in print_probe()
[all …]
Dprint-lwres.c196 goto trunc; in lwres_printname()
205 trunc: in lwres_printname()
217 goto trunc; in lwres_printnamelen()
221 goto trunc; in lwres_printnamelen()
224 trunc: in lwres_printnamelen()
238 goto trunc; in lwres_printbinlen()
241 goto trunc; in lwres_printbinlen()
247 trunc: in lwres_printbinlen()
288 trunc: in lwres_printaddr()
389 goto trunc; in lwres_print()
[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/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/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/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/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/Analysis/CostModel/X86/
Dsse-itoi.ll240 ; SSE2: cost of 10 {{.*}} trunc
243 ; SSE41: cost of 6 {{.*}} trunc
246 %2 = trunc <16 x i32> %1 to <16 x i16>
253 ; SSE2: cost of 5 {{.*}} trunc
256 ; SSE41: cost of 3 {{.*}} trunc
259 %2 = trunc <8 x i32> %1 to <8 x i16>
266 ; SSE2: cost of 3 {{.*}} trunc
269 ; SSE41: cost of 1 {{.*}} trunc
272 %2 = trunc <4 x i32> %1 to <4 x i16>
279 ; SSE2: cost of 7 {{.*}} trunc
[all …]

12345678910>>...58