This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.23-430-g8fa8a33
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 7 Jun 2016 23:08:52 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.23-430-g8fa8a33
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 8fa8a330f95c2f39eae7960ccf2825e693789202 (commit)
from c23805a95d9bc095118299b5965f7f8388e57fc4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8fa8a330f95c2f39eae7960ccf2825e693789202
commit 8fa8a330f95c2f39eae7960ccf2825e693789202
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Jun 7 23:08:32 2016 +0000
Fix i386 atanhl (sNaN) (bug 20219).
The i386 version of atanhl returns sNaN for sNaN input. This patch
fixes it to add NaN arguments to themselves so it returns qNaN in this
case.
Tested for x86_64 and x86.
[BZ #20219]
* sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
to itself.
* math/libm-test.inc (atanh_test_data): Add sNaN tests.
diff --git a/ChangeLog b/ChangeLog
index cba504e..20b3dc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2016-06-07 Joseph Myers <joseph@codesourcery.com>
+ [BZ #20219]
+ * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
+ to itself.
+ * math/libm-test.inc (atanh_test_data): Add sNaN tests.
+
[BZ #20218]
* sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
to itself.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index fb7a71b..decda41 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -1915,6 +1915,8 @@ static const struct test_f_f_data atanh_test_data[] =
TEST_f_f (atanh, -1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
TEST_f_f (atanh, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
TEST_f_f (atanh, -qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ TEST_f_f (atanh, snan_value, qnan_value, INVALID_EXCEPTION),
+ TEST_f_f (atanh, -snan_value, qnan_value, INVALID_EXCEPTION),
/* atanh (x) == qNaN plus invalid exception if |x| > 1. */
TEST_f_f (atanh, 1.125L, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM),
diff --git a/sysdeps/i386/fpu/e_atanhl.S b/sysdeps/i386/fpu/e_atanhl.S
index dc5ca51..ecfba3a 100644
--- a/sysdeps/i386/fpu/e_atanhl.S
+++ b/sysdeps/i386/fpu/e_atanhl.S
@@ -121,6 +121,7 @@ ENTRY(__ieee754_atanhl)
cmpl $0, 4(%esp)
je 7b
6: fldt 4(%esp)
+ fadd %st(0)
ret
END(__ieee754_atanhl)
strong_alias (__ieee754_atanhl, __atanhl_finite)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
math/libm-test.inc | 2 ++
sysdeps/i386/fpu/e_atanhl.S | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources