/external/v8/test/mjsunit/es6/ |
D | math-trunc.js | 28 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/ |
D | APSIntTest.cpp | 108 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/ |
D | 2013-04-18-load-overlap-PR14824.ll | 17 %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/ |
D | vec-and-03.ll | 11 %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 …]
|
D | vec-move-17.ll | 8 %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 …]
|
D | xor-06.ll | 14 %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 …]
|
D | and-06.ll | 14 %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 …]
|
D | or-06.ll | 14 %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 …]
|
D | int-conv-11.ll | 44 %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 …]
|
D | vec-shift-07.ll | 11 %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 …]
|
D | fp-move-05.ll | 13 %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/ |
D | no-shrink-extloads.ll | 13 %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 …]
|
D | trunc-store-i1.ll | 11 %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
|
D | trunc.ll | 17 %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/ |
D | print-ip6opts.c | 57 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 …]
|
D | print-cdp.c | 155 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 …]
|
D | print-dvmrp.c | 91 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 …]
|
D | print-lwres.c | 196 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/ |
D | 2009-04-22-TruncCast.ll | 4 ; 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/ |
D | test-cast.ll | 40 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/ |
D | test-cast.ll | 40 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/ |
D | resources_combine.ll | 18 %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/ |
D | vec_anyext.ll | 6 %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 …]
|
D | 2013-01-09-DAGCombineBug.ll | 51 … i1 icmp ult (i64 xor (i64 zext (i1 trunc (i192 lshr (i192 or (i192 shl (i192 zext (i64 trunc (i12… 57 …trunc (i192 lshr (i192 or (i192 shl (i192 zext (i64 trunc (i128 lshr (i128 trunc (i384 lshr (i384 … 60 …trunc (i192 lshr (i192 or (i192 and (i192 or (i192 shl (i192 zext (i64 trunc (i128 lshr (i128 trun…
|
/external/llvm/test/Analysis/CostModel/X86/ |
D | sse-itoi.ll | 240 ; 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 …]
|