summaryrefslogtreecommitdiff
path: root/test/math
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 01:23:34 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-10-31 01:23:34 +0200
commit86bb6c482282b56bdcf69b2836d5fca09265336f (patch)
tree649692a695dfa3704a722fc7d8a854a7fa0ab8be /test/math
parente9807e243b454b06f279d7593abaeb74c73aef1e (diff)
libm: fix false positives in double tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'test/math')
-rw-r--r--test/math/Makefile.in2
-rw-r--r--test/math/libm-test-ulps-i38618
2 files changed, 19 insertions, 1 deletions
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 9ceb6c6d5..0acbe9cac 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 5231789be..a6fd6ac24 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