diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-06-01 19:05:46 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-06-01 19:05:46 +0000 |
commit | c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc (patch) | |
tree | f8072090ce6d587aedc58b61b5e719c255aa33f4 /math/libm-test.inc | |
parent | 4842e4fe5fcb90312f330b0a98cf73f082aefd01 (diff) | |
download | glibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.tar.gz glibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.tar.xz glibc-c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc.zip |
Fix fmod for subnormals (bug 14048).
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r-- | math/libm-test.inc | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |