From 8fa8a330f95c2f39eae7960ccf2825e693789202 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 7 Jun 2016 23:08:32 +0000 Subject: 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. --- sysdeps/i386/fpu/e_atanhl.S | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/i386') diff --git a/sysdeps/i386/fpu/e_atanhl.S b/sysdeps/i386/fpu/e_atanhl.S index dc5ca51a4b..ecfba3ae0e 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) -- cgit 1.4.1