aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-05-24 20:52:55 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-05-24 20:52:55 +0000
commit0323d08657f111267efa47bd448fbf6cd76befe8 (patch)
tree7ebd164c7460e42866c7fe5e31ab9c4b556f23ab /math
parentdd4259b9f76fa8fd3690a91608d2e3a94e2d6713 (diff)
downloadglibc-0323d08657f111267efa47bd448fbf6cd76befe8.zip
glibc-0323d08657f111267efa47bd448fbf6cd76befe8.tar.gz
glibc-0323d08657f111267efa47bd448fbf6cd76befe8.tar.bz2
Fix ldbl-96 hypotl of subnormals (bug 15529).
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 91af668..7a6bf09 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -9387,6 +9387,19 @@ static const struct test_ff_f_data hypot_test_data[] =
#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 && !defined TEST_INLINE
TEST_ff_f (hypot, 0x3p16381L, 0x4p16381L, 0x5p16381L),
#endif
+
+ TEST_ff_f (hypot, 0x1p-149L, 0x1p-149L, 1.9817352931807469938024533350782879785095e-45L, UNDERFLOW_EXCEPTION_FLOAT),
+
+#ifndef TEST_FLOAT
+ TEST_ff_f (hypot, 0x1p-1074L, 0x1p-1074L, 6.9871433705131320800651344656990806305791e-324L, UNDERFLOW_EXCEPTION_DOUBLE),
+#endif
+
+#if defined TEST_LDOUBLE && LDBL_MIN_EXP <= -16381 && !defined TEST_INLINE
+ TEST_ff_f (hypot, 0x1p-16445L, 0x1p-16445L, 5.1550906155442528702558159159596215039925e-4951L, UNDERFLOW_EXCEPTION),
+# if LDBL_MANT_DIG >= 113
+ TEST_ff_f (hypot, 0x1p-16494L, 0x1p-16494L, 9.1572804726500807075521065242888978445857e-4966L, UNDERFLOW_EXCEPTION),
+# endif
+#endif
};
static void