GNU C Library master sources branch master updated. glibc-2.23-429-gc23805a

jsm28@sourceware.org jsm28@sourceware.org
Tue Jun 7 22:55:00 GMT 2016


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  c23805a95d9bc095118299b5965f7f8388e57fc4 (commit)
      from  91655fc307fec2d5a8d60446b4de11cc986b47fa (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=c23805a95d9bc095118299b5965f7f8388e57fc4

commit c23805a95d9bc095118299b5965f7f8388e57fc4
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jun 7 22:54:58 2016 +0000

    Fix i386 asinhl (sNaN) (bug 20218).
    
    The i386 version of asinhl returns sNaN (without raising any
    exceptions) for sNaN input.  This patch fixes it to add non-finite
    arguments to themselves, so that "invalid" is raised and qNaN
    returned.
    
    Tested for x86_64 and x86.
    
    	[BZ #20218]
    	* sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
    	to itself.
    	* math/libm-test.inc (asinh_test_data): Add sNaN tests.

diff --git a/ChangeLog b/ChangeLog
index 5688d20..cba504e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-06-07  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #20218]
+	* sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
+	to itself.
+	* math/libm-test.inc (asinh_test_data): Add sNaN tests.
+
 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #20195]
diff --git a/math/libm-test.inc b/math/libm-test.inc
index f9b2c8a..fb7a71b 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -1878,6 +1878,8 @@ static const struct test_f_f_data asinh_test_data[] =
     TEST_f_f (asinh, minus_infty, minus_infty, ERRNO_UNCHANGED|NO_TEST_INLINE),
     TEST_f_f (asinh, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
     TEST_f_f (asinh, -qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+    TEST_f_f (asinh, snan_value, qnan_value, INVALID_EXCEPTION),
+    TEST_f_f (asinh, -snan_value, qnan_value, INVALID_EXCEPTION),
     AUTO_TESTS_f_f (asinh),
   };
 
diff --git a/sysdeps/i386/fpu/s_asinhl.S b/sysdeps/i386/fpu/s_asinhl.S
index c9d5714..e055386 100644
--- a/sysdeps/i386/fpu/s_asinhl.S
+++ b/sysdeps/i386/fpu/s_asinhl.S
@@ -88,6 +88,7 @@ ENTRY(__asinhl)
 4:	ret
 
 7:	fldt	4(%esp)
+	fadd	%st
 	ret
 
 6:	faddl	MO(one)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |    7 +++++++
 math/libm-test.inc          |    2 ++
 sysdeps/i386/fpu/s_asinhl.S |    1 +
 3 files changed, 10 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources



More information about the Glibc-cvs mailing list