diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | math/libm-test.inc | 6 |
2 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2012-11-22 Joseph Myers <joseph@codesourcery.com> + * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE && + LDBL_MANT_DIG == 106]: Disable some tests. + (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]: + Likewise. + (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]: + Likewise. + [BZ #14871] * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the input for small inputs. Return +/- pi/2 for large inputs. diff --git a/math/libm-test.inc b/math/libm-test.inc index cae2de4..c026511 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -4897,6 +4897,7 @@ fma_test_towardzero (void) TEST_fff_f (fma, -min_value, -min_value, plus_zero, plus_zero, UNDERFLOW_EXCEPTION); TEST_fff_f (fma, -min_value, -min_value, minus_zero, plus_zero, UNDERFLOW_EXCEPTION); +#if !(defined TEST_LDOUBLE && LDBL_MANT_DIG == 106) /* Bug 13304. */ TEST_fff_f (fma, max_value, max_value, min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, max_value, -min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, -max_value, min_value, -max_value, OVERFLOW_EXCEPTION); @@ -4905,6 +4906,7 @@ fma_test_towardzero (void) TEST_fff_f (fma, -max_value, max_value, -min_value, -max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, -min_value, max_value, OVERFLOW_EXCEPTION); +#endif #if defined (TEST_FLOAT) && FLT_MANT_DIG == 24 TEST_fff_f (fma, 0x1.4p-126, 0x1.000004p-1, 0x1p-128, 0x1.c00004p-127, UNDERFLOW_EXCEPTION); @@ -5115,6 +5117,7 @@ fma_test_downward (void) TEST_fff_f (fma, -min_value, -min_value, plus_zero, plus_zero, UNDERFLOW_EXCEPTION); TEST_fff_f (fma, -min_value, -min_value, minus_zero, plus_zero, UNDERFLOW_EXCEPTION); +#if !(defined TEST_LDOUBLE && LDBL_MANT_DIG == 106) /* Bug 13304. */ TEST_fff_f (fma, max_value, max_value, min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, max_value, -min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, -max_value, min_value, minus_infty, OVERFLOW_EXCEPTION); @@ -5123,6 +5126,7 @@ fma_test_downward (void) TEST_fff_f (fma, -max_value, max_value, -min_value, minus_infty, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, min_value, max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, -min_value, max_value, OVERFLOW_EXCEPTION); +#endif #if defined (TEST_FLOAT) && FLT_MANT_DIG == 24 TEST_fff_f (fma, 0x1.4p-126, 0x1.000004p-1, 0x1p-128, 0x1.c00004p-127, UNDERFLOW_EXCEPTION); @@ -5333,6 +5337,7 @@ fma_test_upward (void) TEST_fff_f (fma, -min_value, -min_value, plus_zero, min_subnorm_value, UNDERFLOW_EXCEPTION); TEST_fff_f (fma, -min_value, -min_value, minus_zero, min_subnorm_value, UNDERFLOW_EXCEPTION); +#if !(defined TEST_LDOUBLE && LDBL_MANT_DIG == 106) /* Bug 13304. */ TEST_fff_f (fma, max_value, max_value, min_value, plus_infty, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, max_value, -min_value, plus_infty, OVERFLOW_EXCEPTION); TEST_fff_f (fma, max_value, -max_value, min_value, -max_value, OVERFLOW_EXCEPTION); @@ -5341,6 +5346,7 @@ fma_test_upward (void) TEST_fff_f (fma, -max_value, max_value, -min_value, -max_value, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, min_value, plus_infty, OVERFLOW_EXCEPTION); TEST_fff_f (fma, -max_value, -max_value, -min_value, plus_infty, OVERFLOW_EXCEPTION); +#endif #if defined (TEST_FLOAT) && FLT_MANT_DIG == 24 TEST_fff_f (fma, 0x1.4p-126, 0x1.000004p-1, 0x1p-128, 0x1.c00008p-127, UNDERFLOW_EXCEPTION); |