aboutsummaryrefslogtreecommitdiff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-06-01 19:05:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-06-01 19:05:46 +0000
commitc5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc (patch)
treef8072090ce6d587aedc58b61b5e719c255aa33f4 /math/libm-test.inc
parent4842e4fe5fcb90312f330b0a98cf73f082aefd01 (diff)
downloadglibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.zip
glibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.tar.gz
glibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.tar.bz2
Fix fmod for subnormals (bug 14048).
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index bb19dee..2b2ca32 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);
}