From 86bb6c482282b56bdcf69b2836d5fca09265336f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 31 Oct 2010 01:23:34 +0200 Subject: libm: fix false positives in double tests Signed-off-by: Denys Vlasenko --- test/math/Makefile.in | 2 +- test/math/libm-test-ulps-i386 | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3