Bug 12775 - Typo in sysdeps/x86_64/fpu/e_powl.S
Summary: Typo in sysdeps/x86_64/fpu/e_powl.S
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: math (show other bugs)
Version: 2.13
: P2 normal
Target Milestone: ---
Assignee: Andreas Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 23:24 UTC by H.J. Lu
Modified: 2014-06-27 13:21 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2011-05-17 23:24:43 UTC
This patch:

diff --git a/sysdeps/x86_64/fpu/e_powl.S b/sysdeps/x86_64/fpu/e_powl.S
index 4959bea..f6a09c8 100644
--- a/sysdeps/x86_64/fpu/e_powl.S
+++ b/sysdeps/x86_64/fpu/e_powl.S
@@ -154,7 +154,7 @@ ENTRY(__ieee754_powl)
 	fucompp			// 1.0 : x : y
 	fnstsw
 	fxch			// x : 1.0 : y
-	test	$4500,%eax
+	test	$0x4500,%eax
 	jz	7f
 	fsub	%st(1)		// x-1 : 1.0 : y
 	fyl2xp1			// log2(x) : y

seems to fix the testcase in:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49031

It looks a like a typo to me.
Comment 1 Elias Rudberg 2011-05-18 08:08:37 UTC
Thanks for finding this and posting it here!
It was my mistake to put it under the gcc bugzilla, it should of course have
been here from the start.