/external/tensorflow/tensorflow/core/platform/ |
D | setround_test.cc | 29 EXPECT_EQ(12, std::nearbyint(12.0)); in CheckDownward() 30 EXPECT_EQ(12, std::nearbyint(12.1)); in CheckDownward() 31 EXPECT_EQ(-13, std::nearbyint(-12.1)); in CheckDownward() 32 EXPECT_EQ(12, std::nearbyint(12.5)); in CheckDownward() 33 EXPECT_EQ(12, std::nearbyint(12.9)); in CheckDownward() 34 EXPECT_EQ(-13, std::nearbyint(-12.9)); in CheckDownward() 35 EXPECT_EQ(13, std::nearbyint(13.0)); in CheckDownward() 39 EXPECT_EQ(12, std::nearbyint(12.0)); in CheckToNearest() 40 EXPECT_EQ(12, std::nearbyint(12.1)); in CheckToNearest() 41 EXPECT_EQ(-12, std::nearbyint(-12.1)); in CheckToNearest() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | fnearbyint.ll | 8 declare float @llvm.nearbyint.f32(float) #0 9 declare <2 x float> @llvm.nearbyint.v2f32(<2 x float>) #0 10 declare <4 x float> @llvm.nearbyint.v4f32(<4 x float>) #0 11 declare double @llvm.nearbyint.f64(double) #0 12 declare <2 x double> @llvm.nearbyint.v2f64(<2 x double>) #0 13 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double>) #0 18 %0 = call float @llvm.nearbyint.f32(float %in) 25 %0 = call <2 x float> @llvm.nearbyint.v2f32(<2 x float> %in) 32 %0 = call <4 x float> @llvm.nearbyint.v4f32(<4 x float> %in) 39 %0 = call double @llvm.nearbyint.f64(double %in) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/ |
D | fnearbyint.ll | 8 declare float @llvm.nearbyint.f32(float) #0 9 declare <2 x float> @llvm.nearbyint.v2f32(<2 x float>) #0 10 declare <4 x float> @llvm.nearbyint.v4f32(<4 x float>) #0 11 declare double @llvm.nearbyint.f64(double) #0 12 declare <2 x double> @llvm.nearbyint.v2f64(<2 x double>) #0 13 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double>) #0 18 %0 = call float @llvm.nearbyint.f32(float %in) 25 %0 = call <2 x float> @llvm.nearbyint.v2f32(<2 x float> %in) 32 %0 = call <4 x float> @llvm.nearbyint.v4f32(<4 x float> %in) 39 %0 = call double @llvm.nearbyint.f64(double %in) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/ |
D | vec_rounding.ll | 75 declare <2 x double> @llvm.nearbyint.v2f64(<2 x double> %p) 78 %t = call <2 x double> @llvm.nearbyint.v2f64(<2 x double> %p) 82 ; CHECK: bl nearbyint 83 ; CHECK: bl nearbyint 85 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double> %p) 88 %t = call <4 x double> @llvm.nearbyint.v4f64(<4 x double> %p) 92 ; CHECK: bl nearbyint 93 ; CHECK: bl nearbyint 94 ; CHECK: bl nearbyint 95 ; CHECK: bl nearbyint [all …]
|
D | qpx-rounding-ops.ll | 33 %call = tail call <4 x float> @llvm.nearbyint.v4f32(<4 x float> %x) nounwind readnone 43 declare <4 x float> @llvm.nearbyint.v4f32(<4 x float>) nounwind readnone 46 %call = tail call <4 x double> @llvm.nearbyint.v4f64(<4 x double> %x) nounwind readnone 56 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double>) nounwind readnone
|
/external/llvm/test/CodeGen/PowerPC/ |
D | vec_rounding.ll | 75 declare <2 x double> @llvm.nearbyint.v2f64(<2 x double> %p) 78 %t = call <2 x double> @llvm.nearbyint.v2f64(<2 x double> %p) 82 ; CHECK: bl nearbyint 83 ; CHECK: bl nearbyint 85 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double> %p) 88 %t = call <4 x double> @llvm.nearbyint.v4f64(<4 x double> %p) 92 ; CHECK: bl nearbyint 93 ; CHECK: bl nearbyint 94 ; CHECK: bl nearbyint 95 ; CHECK: bl nearbyint [all …]
|
D | qpx-rounding-ops.ll | 33 %call = tail call <4 x float> @llvm.nearbyint.v4f32(<4 x float> %x) nounwind readnone 43 declare <4 x float> @llvm.nearbyint.v4f32(<4 x float>) nounwind readnone 46 %call = tail call <4 x double> @llvm.nearbyint.v4f64(<4 x double> %x) nounwind readnone 56 declare <4 x double> @llvm.nearbyint.v4f64(<4 x double>) nounwind readnone
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/CostModel/X86/ |
D | fround.ll | 198 define i32 @nearbyint(i32 %arg) { 199 ; SSE2-LABEL: 'nearbyint' 200 …: Found an estimated cost of 10 for instruction: %F32 = call float @llvm.nearbyint.f32(float undef) 201 …n estimated cost of 43 for instruction: %V4F32 = call <4 x float> @llvm.nearbyint.v4f32(<4 x float… 202 …n estimated cost of 86 for instruction: %V8F32 = call <8 x float> @llvm.nearbyint.v8f32(<8 x float… 203 …stimated cost of 172 for instruction: %V16F32 = call <16 x float> @llvm.nearbyint.v16f32(<16 x flo… 204 …Found an estimated cost of 10 for instruction: %F64 = call double @llvm.nearbyint.f64(double undef) 205 … estimated cost of 21 for instruction: %V2F64 = call <2 x double> @llvm.nearbyint.v2f64(<2 x doubl… 206 … estimated cost of 42 for instruction: %V4F64 = call <4 x double> @llvm.nearbyint.v4f64(<4 x doubl… 207 … estimated cost of 84 for instruction: %V8F64 = call <8 x double> @llvm.nearbyint.v8f64(<8 x doubl… [all …]
|
/external/libpng/contrib/tools/ |
D | makesRGB.c | 63 unsigned int x = nearbyint(finvsRGB(i)); in invsRGB() 131 calc = nearbyint((lo+adjust) * 256); in main() 140 calc = nearbyint((hi-lo) * 32); in main() 155 unsigned int iexact = nearbyint(255*sRGB(i)); in main() 227 unsigned int iexact = nearbyint(255*sRGB(i)); in main() 308 unsigned int iexact = nearbyint(255*sRGB(i)); in main() 340 unsigned int iexact = nearbyint(255*sRGB(i)); in main() 365 unsigned int iexact = nearbyint(255*sRGB(i)); in main()
|
/external/llvm/test/CodeGen/SystemZ/ |
D | fp-round-01.ll | 37 ; Test nearbyint for f32. 38 declare float @llvm.nearbyint.f32(float %f) 43 %res = call float @llvm.nearbyint.f32(float %f) 47 ; Test nearbyint for f64. 48 declare double @llvm.nearbyint.f64(double %f) 51 ; CHECK: brasl %r14, nearbyint@PLT 53 %res = call double @llvm.nearbyint.f64(double %f) 57 ; Test nearbyint for f128: omitted for now because we cannot handle
|
D | fp-round-02.ll | 41 ; Test nearbyint for f32. 42 declare float @llvm.nearbyint.f32(float %f) 47 %res = call float @llvm.nearbyint.f32(float %f) 51 ; Test nearbyint for f64. 52 declare double @llvm.nearbyint.f64(double %f) 57 %res = call double @llvm.nearbyint.f64(double %f) 61 ; Test nearbyint for f128. 62 declare fp128 @llvm.nearbyint.f128(fp128 %f) 68 %res = call fp128 @llvm.nearbyint.f128(fp128 %src)
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/ |
D | fp-round-01.ll | 37 ; Test nearbyint for f32. 38 declare float @llvm.nearbyint.f32(float %f) 43 %res = call float @llvm.nearbyint.f32(float %f) 47 ; Test nearbyint for f64. 48 declare double @llvm.nearbyint.f64(double %f) 51 ; CHECK: brasl %r14, nearbyint@PLT 53 %res = call double @llvm.nearbyint.f64(double %f) 57 ; Test nearbyint for f128: omitted for now because we cannot handle
|
D | fp-round-02.ll | 41 ; Test nearbyint for f32. 42 declare float @llvm.nearbyint.f32(float %f) 47 %res = call float @llvm.nearbyint.f32(float %f) 51 ; Test nearbyint for f64. 52 declare double @llvm.nearbyint.f64(double %f) 57 %res = call double @llvm.nearbyint.f64(double %f) 61 ; Test nearbyint for f128. 62 declare fp128 @llvm.nearbyint.f128(fp128 %f) 68 %res = call fp128 @llvm.nearbyint.f128(fp128 %src)
|
D | fp-round-03.ll | 39 ; Test nearbyint for f32. 40 declare float @llvm.nearbyint.f32(float %f) 45 %res = call float @llvm.nearbyint.f32(float %f) 49 ; Test nearbyint for f64. 50 declare double @llvm.nearbyint.f64(double %f) 55 %res = call double @llvm.nearbyint.f64(double %f) 59 ; Test nearbyint for f128. 60 declare fp128 @llvm.nearbyint.f128(fp128 %f) 68 %res = call fp128 @llvm.nearbyint.f128(fp128 %src)
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | vfloatintrinsics.ll | 104 ; CHECK-LABEL: test_v2f32.nearbyint:{{.*}} 105 define %v2f32 @test_v2f32.nearbyint(%v2f32 %a) { 106 ; CHECK: nearbyint 107 %1 = call %v2f32 @llvm.nearbyint.v2f32(%v2f32 %a) 127 declare %v2f32 @llvm.nearbyint.v2f32(%v2f32) #0 228 ; CHECK-LABEL: test_v4f32.nearbyint:{{.*}} 229 define %v4f32 @test_v4f32.nearbyint(%v4f32 %a) { 230 ; CHECK: nearbyint 231 %1 = call %v4f32 @llvm.nearbyint.v4f32(%v4f32 %a) 251 declare %v4f32 @llvm.nearbyint.v4f32(%v4f32) #0 [all …]
|
/external/llvm/test/CodeGen/ARM/ |
D | vfloatintrinsics.ll | 104 ; CHECK: test_v2f32.nearbyint: 105 define %v2f32 @test_v2f32.nearbyint(%v2f32 %a) { 106 ; CHECK: nearbyint 107 %1 = call %v2f32 @llvm.nearbyint.v2f32(%v2f32 %a) 127 declare %v2f32 @llvm.nearbyint.v2f32(%v2f32) #0 228 ; CHECK: test_v4f32.nearbyint: 229 define %v4f32 @test_v4f32.nearbyint(%v4f32 %a) { 230 ; CHECK: nearbyint 231 %1 = call %v4f32 @llvm.nearbyint.v4f32(%v4f32 %a) 251 declare %v4f32 @llvm.nearbyint.v4f32(%v4f32) #0 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/ |
D | fp16_intrinsic_vector_1op.ll | 3 declare <4 x half> @llvm.nearbyint.v4f16(<4 x half>) 4 declare <8 x half> @llvm.nearbyint.v8f16(<8 x half>) 13 %vrndi1.i = tail call <4 x half> @llvm.nearbyint.v4f16(<4 x half> %a) 22 %vrndi1.i = tail call <8 x half> @llvm.nearbyint.v8f16(<8 x half> %a)
|
D | arm64-vfloatintrinsics.ll | 270 ; CHECK-LABEL: test_v2f32.nearbyint: 271 define %v2f32 @test_v2f32.nearbyint(%v2f32 %a) { 273 %1 = call %v2f32 @llvm.nearbyint.v2f32(%v2f32 %a) 276 define %v4f16 @test_v4f16.nearbyint(%v4f16 %a) { 277 ; CHECK-LABEL: test_v4f16.nearbyint: 283 ; CHECK-FP16-LABEL: test_v4f16.nearbyint: 287 %1 = call %v4f16 @llvm.nearbyint.v4f16(%v4f16 %a) 290 define %v8f16 @test_v8f16.nearbyint(%v8f16 %a) { 293 ; CHECK-FP16-LABEL: test_v8f16.nearbyint: 297 %1 = call %v8f16 @llvm.nearbyint.v8f16(%v8f16 %a) [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | avx512-round.ll | 70 %res = call <16 x float> @llvm.nearbyint.v16f32(<16 x float> %a) 73 declare <16 x float> @llvm.nearbyint.v16f32(<16 x float> %p) 78 %res = call <8 x double> @llvm.nearbyint.v8f64(<8 x double> %a) 81 declare <8 x double> @llvm.nearbyint.v8f64(<8 x double> %p) 86 %res = call double @llvm.nearbyint.f64(double %a) 89 declare double @llvm.nearbyint.f64(double %p)
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-vfloatintrinsics.ll | 102 ; CHECK: test_v2f32.nearbyint: 103 define %v2f32 @test_v2f32.nearbyint(%v2f32 %a) { 105 %1 = call %v2f32 @llvm.nearbyint.v2f32(%v2f32 %a) 125 declare %v2f32 @llvm.nearbyint.v2f32(%v2f32) #0 226 ; CHECK: test_v4f32.nearbyint: 227 define %v4f32 @test_v4f32.nearbyint(%v4f32 %a) { 229 %1 = call %v4f32 @llvm.nearbyint.v4f32(%v4f32 %a) 249 declare %v4f32 @llvm.nearbyint.v4f32(%v4f32) #0 350 ; CHECK: test_v2f64.nearbyint: 351 define %v2f64 @test_v2f64.nearbyint(%v2f64 %a) { [all …]
|
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/ |
D | floor.ll | 6 ; RUN: not grep {call.*nearbyint(} %t 14 declare double @nearbyint(double) 37 %E = call double @nearbyint( double %D ) ; <double> [#uses=1]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | float-shrink-compare.ll | 99 ; CHECK-NEXT: [[NEARBYINT:%.*]] = call float @llvm.nearbyint.f32(float %x) 104 %nearbyint = call double @nearbyint(double %x.ext) nounwind 106 %cmp = fcmp oeq double %nearbyint, %y.ext 112 ; CHECK-NEXT: [[NEARBYINT:%.*]] = call float @llvm.nearbyint.f32(float %x) 117 %nearbyint = call double @llvm.nearbyint.f64(double %x.ext) nounwind 119 %cmp = fcmp oeq double %nearbyint, %y.ext 268 ; CHECK-NEXT: [[NEARBYINT:%.*]] = call float @llvm.nearbyint.f32(float %x) 274 %nearbyint = call double @nearbyint(double %x.ext) nounwind 275 %cmp = fcmp oeq double %nearbyint, %y.ext 281 ; CHECK-NEXT: [[NEARBYINT:%.*]] = call float @llvm.nearbyint.f32(float %x) [all …]
|
/external/llvm/test/Transforms/LICM/ |
D | hoist-round.ll | 6 ; This test verifies that ceil, floor, nearbyint, trunc, rint, round, 13 ; CHECK: call float @llvm.nearbyint.f32 35 %tmp.3 = call float @llvm.nearbyint.f32(float %tmp.2) 55 declare float @llvm.nearbyint.f32(float)
|
/external/llvm/test/Transforms/InstCombine/ |
D | double-float-shrink-2.ll | 18 ; C89-SIMPLIFY: call double @nearbyint( 23 ; DONT-SIMPLIFY: call double @nearbyint( 30 declare double @nearbyint(double) 61 %E = call double @nearbyint(double %D)
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LICM/ |
D | hoist-round.ll | 6 ; This test verifies that ceil, floor, nearbyint, trunc, rint, round, 13 ; CHECK: call float @llvm.nearbyint.f32 36 %tmp.3 = call float @llvm.nearbyint.f32(float %tmp.2) 57 declare float @llvm.nearbyint.f32(float)
|