aboutsummaryrefslogtreecommitdiff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc24
1 files changed, 18 insertions, 6 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0337b60d65..760ec6b7ef 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2112,11 +2112,15 @@ cos_test (void)
TEST_f_f (cos, 0.75L, 0.731688868873820886311838753000084544L);
+#ifndef TEST_LDOUBLE
+ /* Enable for long double once x86 and x86-64 implementation is fixed. */
+ TEST_f_f (cos, 0x1p65, 0.998886220660580136106421721793L);
+ TEST_f_f (cos, -0x1p65, 0.998886220660580136106421721793L);
+#endif
+
#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
@@ -6391,12 +6395,16 @@ sin_test (void)
TEST_f_f (sin, -M_PI_2l, -1);
TEST_f_f (sin, 0.75L, 0.681638760023334166733241952779893935L);
+#ifndef TEST_LDOUBLE
+ /* Enable for long double once x86 and x86-64 implementation is fixed. */
+ TEST_f_f (sin, 0x1p65, -0.0471838762123546738051061498057L);
+ TEST_f_f (sin, -0x1p65, 0.0471838762123546738051061498057L);
+#endif
+
#ifdef TEST_DOUBLE
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
@@ -6567,11 +6575,15 @@ sincos_test (void)
TEST_extra (sincos, M_PI_6l*2.0, 0.86602540378443864676372317075293616L, 0.5);
TEST_extra (sincos, 0.75L, 0.681638760023334166733241952779893935L, 0.731688868873820886311838753000084544L);
+#ifndef TEST_LDOUBLE
+ /* Enable for long double once x86 and x86-64 implementation is fixed. */
+ TEST_extra (sincos, 0x1p65, -0.0471838762123546738051061498057L, 0.998886220660580136106421721793L);
+ TEST_extra (sincos, -0x1p65, 0.0471838762123546738051061498057L, 0.998886220660580136106421721793L);
+#endif
+
#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