[git commit prelink 1/1] libm: fix false positives in double tests

Denys Vlasenko vda.linux at googlemail.com
Sun Nov 28 19:50:38 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=86bb6c482282b56bdcf69b2836d5fca09265336f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 test/math/Makefile.in         |    2 +-
 test/math/libm-test-ulps-i386 |   18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 9ceb6c6..0acbe9c 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -24,7 +24,7 @@ PERL := /usr/bin/perl
 
 $(TESTS): libm-test.c
 
-libm-test.c: libm-test.inc gen-libm-test.pl
+libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
 	$(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
 
 EXTRA_CLEAN := libm-test.c libm-test-ulps.h
diff --git a/test/math/libm-test-ulps-i386 b/test/math/libm-test-ulps-i386
index 5231789..a6fd6ac 100644
--- a/test/math/libm-test-ulps-i386
+++ b/test/math/libm-test-ulps-i386
@@ -467,20 +467,28 @@ ldouble: 1
 # hypot
 Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
 float: 1
+ifloat: 1
 
 # j0
 Test "j0 (-4.0) == -3.9714980986384737228659076845169804197562E-1":
@@ -696,6 +704,11 @@ ifloat: 1
 ildouble: 1
 ldouble: 1
 
+# sin
+Test "sin (0.80190127184058835) == 0.71867942238767868":
+double: 1
+idouble: 1
+
 # sinh
 Test "sinh (0.75) == 0.822316731935829980703661634446913849":
 double: 1
@@ -1149,6 +1162,7 @@ ldouble: 1
 
 Function: "hypot":
 float: 1
+ifloat: 1
 
 Function: "j0":
 double: 3
@@ -1200,6 +1214,10 @@ ifloat: 1
 ildouble: 1
 ldouble: 1
 
+Function: "sin":
+double: 1
+idouble: 1
+
 Function: "sinh":
 double: 1
 ildouble: 1
-- 
1.7.2.2



More information about the uClibc-cvs mailing list