From 11b90b9f504df5b2da91ce3a06c1657d99e4a95f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 16 Mar 2012 20:05:04 +0000 Subject: Fix tan, tanl for large inputs. --- math/libm-test.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'math') diff --git a/math/libm-test.inc b/math/libm-test.inc index fb82926183..8bcaa8869f 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -6796,11 +6796,16 @@ tan_test (void) TEST_f_f (tan, M_PI_4l, 1); TEST_f_f (tan, 0.75L, 0.931596459944072461165202756573936428L); -#ifdef TEST_FLOAT - /* Enable for double and long double once x86 and x86-64 - implementations are fixed. */ TEST_f_f (tan, 0x1p65, -0.0472364872359047946798414219288370688827L); TEST_f_f (tan, -0x1p65, 0.0472364872359047946798414219288370688827L); + +#ifndef TEST_FLOAT + TEST_f_f (tan, 1e22, -1.628778225606898878549375936939548513545L); + TEST_f_f (tan, 0x1p1023, -0.6814476476066215012854144040167365190368L); +#endif + +#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 + TEST_f_f (tan, 0x1p16383L, 0.422722393732022337800504160054440141575L); #endif END (tan); -- cgit v1.2.3