aboutsummaryrefslogtreecommitdiff
path: root/math/auto-libm-test-in
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-12-17 13:42:13 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-12-17 13:42:13 +0000
commitc88769dda4199d15267259fd3c9b986e6690a901 (patch)
tree743ef394beae012b285cc655faa375293445361f /math/auto-libm-test-in
parente4a110f59e6317a52dde765ceb3571763ca07a9a (diff)
downloadglibc-c88769dda4199d15267259fd3c9b986e6690a901.zip
glibc-c88769dda4199d15267259fd3c9b986e6690a901.tar.gz
glibc-c88769dda4199d15267259fd3c9b986e6690a901.tar.bz2
Fix hypot handling of subnormals (bug 16316, bug 16330).
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r--math/auto-libm-test-in16
1 files changed, 13 insertions, 3 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index f468676..980b6b9 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -282,6 +282,10 @@ expm1 100000.0
expm1 max
expm1 -max
+hypot 0 0
+hypot 0 -0
+hypot -0 0
+hypot -0 -0
# hypot (x,y) == hypot (+-x, +-y).
hypot 0.7 12.4
hypot -0.7 12.4
@@ -307,9 +311,15 @@ hypot 0x1p+0 0x0.3ep-1022 no-test-inline:dbl-64
hypot 0x3p16381 0x4p16381 no-test-inline
hypot 0x1p-149 0x1p-149
hypot 0x1p-1074 0x1p-1074
-# Bug 16316: hypot broken for some subnormal arguments.
-hypot 0x1p-16445 0x1p-16445 no-test-inline xfail:ldbl-96-intel xfail:ldbl-96-m68k
-hypot 0x1p-16494 0x1p-16494 no-test-inline xfail:ldbl-96-intel xfail:ldbl-96-m68k
+hypot 0x1p-16445 0x1p-16445 no-test-inline
+hypot 0x1p-16494 0x1p-16494 no-test-inline
+hypot 0x0.fffffep-126 0x0.fp-127
+hypot 0x0.fffffep-126 0x0.fp-130
+hypot 0x0.fffffffffffffp-1022 0x0.fp-1023
+hypot 0x0.fffffffffffffp-1022 0x0.fp-1026
+hypot 0x0.ffffffp-16382 0x0.fp-16383
+hypot 0x0.ffffffp-16382 0x0.fp-16386
+hypot 0 min_subnorm
j0 -1.0
j0 0.0