This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
TEstcase from BZ#13837
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 15 Mar 2012 14:33:50 +0100
- Subject: TEstcase from BZ#13837
BZ#13837 is a duplicate of BZ#13658 but I've added the testcase as obvious to the repository.
The test now passes on i386 and x86-64,
Andreas
2012-03-15 Andreas Jaeger <aj@suse.de>
[BZ #13837]
* math/libm-test.inc (cos_test): Add a test case for large input
value.
(sin_test): Likewise.
(sincos_test): Likewise.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 8882833..0801ca6 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2115,6 +2115,7 @@ cos_test (void)
#ifdef TEST_DOUBLE
TEST_f_f (cos, 0.80190127184058835, 0.69534156199418473);
TEST_f_f (cos, 1e22, 0.5232147853951389454975944733847);
+ TEST_f_f (cos, 0x1p1023, -0.8263698346141479945007856808117);
#endif
END (cos);
@@ -6392,6 +6393,7 @@ sin_test (void)
TEST_f_f (sin, 0.80190127184058835, 0.71867942238767868);
TEST_f_f (sin, 2.522464e-1, 2.4957989804940911e-1);
TEST_f_f (sin, 1e22, -0.8522008497671888017727058937530);
+ TEST_f_f (sin, 0x1p1023, 0.5631277798508840248814522055909);
#endif
END (sin);
@@ -6564,6 +6566,7 @@ sincos_test (void)
#ifdef TEST_DOUBLE
TEST_extra (sincos, 0.80190127184058835, 0.71867942238767868, 0.69534156199418473);
TEST_extra (sincos, 1e22, -0.8522008497671888017727058937530, 0.5232147853951389454975944733847);
+ TEST_extra (sincos, 0x1p1023, 0.5631277798508840248814522055909, -0.8263698346141479945007856808117);
#endif
END (sincos);
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126