aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-03-15 16:25:57 +0100
committerAndreas Jaeger <aj@suse.de>2012-03-15 16:25:57 +0100
commit81c64153841a516059ea3c950b9ba20380a90a54 (patch)
treec76a8a73c88f22a01fcc347b57c35f9f1694d20a
parent0671f479cec1ae4bcea6065a284540607256a0d4 (diff)
downloadglibc-81c64153841a516059ea3c950b9ba20380a90a54.tar
glibc-81c64153841a516059ea3c950b9ba20380a90a54.tar.gz
glibc-81c64153841a516059ea3c950b9ba20380a90a54.tar.bz2
glibc-81c64153841a516059ea3c950b9ba20380a90a54.zip
[BZ #13658]
* math/libm-test.inc (cos_test): Add more test cases. (sin_test): Likewise. (sincos_test): Likewise.
-rw-r--r--ChangeLog7
-rw-r--r--math/libm-test.inc6
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 98c89a33a0..e495be541a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2012-03-15 Andreas Jaeger <aj@suse.de>
+ [BZ #13658]
+ * math/libm-test.inc (cos_test): Add more test cases.
+ (sin_test): Likewise.
+ (sincos_test): Likewise.
+
+2012-03-15 Andreas Jaeger <aj@suse.de>
+
[BZ #13837]
* math/libm-test.inc (cos_test): Add a test case for large input
value.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0801ca62c5..0337b60d65 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2115,6 +2115,8 @@ 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, 0x1p65, 0.998886220660580136106421721793);
+ TEST_f_f (cos, -0x1p65, 0.998886220660580136106421721793);
TEST_f_f (cos, 0x1p1023, -0.8263698346141479945007856808117);
#endif
@@ -6393,6 +6395,8 @@ 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, 0x1p65, -0.0471838762123546738051061498057);
+ TEST_f_f (sin, -0x1p65, 0.0471838762123546738051061498057);
TEST_f_f (sin, 0x1p1023, 0.5631277798508840248814522055909);
#endif
@@ -6566,6 +6570,8 @@ 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, 0x1p65, -0.0471838762123546738051061498057, 0.998886220660580136106421721793);
+ TEST_extra (sincos, -0x1p65, 0.0471838762123546738051061498057, 0.998886220660580136106421721793);
TEST_extra (sincos, 0x1p1023, 0.5631277798508840248814522055909, -0.8263698346141479945007856808117);
#endif