From c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 1 Jun 2012 19:05:46 +0000 Subject: Fix fmod for subnormals (bug 14048). --- math/libm-test.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'math') diff --git a/math/libm-test.inc b/math/libm-test.inc index bb19dee350..2b2ca32536 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -4123,6 +4123,14 @@ fmod_test (void) TEST_ff_f (fmod, 6.5, -2.25L, 2.0L); TEST_ff_f (fmod, -6.5, -2.25L, -2.0L); + TEST_ff_f (fmod, 0x0.fffffep-126L, 0x1p-149L, plus_zero); +#ifndef TEST_FLOAT + TEST_ff_f (fmod, 0x0.fffffffffffffp-1022L, 0x1p-1074L, plus_zero); +#endif +#if defined TEST_LDOUBLE && LDBL_MIN_EXP <= -16381 + TEST_ff_f (fmod, 0x0.fffffffffffffffep-16382L, 0x1p-16445L, plus_zero); +#endif + END (fmod); } -- cgit v1.2.3