summaryrefslogtreecommitdiff
path: root/libc/math/libm-test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/math/libm-test.inc')
-rw-r--r--libc/math/libm-test.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/math/libm-test.inc b/libc/math/libm-test.inc
index c2176929b..0eed5978a 100644
--- a/libc/math/libm-test.inc
+++ b/libc/math/libm-test.inc
@@ -4136,6 +4136,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);
}