Browse Source

libm: fix false positives in double tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 14 years ago
parent
commit
86bb6c4822
2 changed files with 19 additions and 1 deletions
  1. 1 1
      test/math/Makefile.in
  2. 18 0
      test/math/libm-test-ulps-i386

+ 1 - 1
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

+ 18 - 0
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