This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix %fp/%sp typo in new sparc ceil{,f} assembler.


Found this while working on assembler implementations of floor{,f}

Committed to master.

	* sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
	frame pointer instead of stack pointer relative arg slot.
	* sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
	* sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
	* sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
---
 ChangeLog                                   |    8 ++++++++
 sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S  |    4 ++--
 sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S |    4 ++--
 sysdeps/sparc/sparc64/fpu/s_ceil.S          |    4 ++--
 sysdeps/sparc/sparc64/fpu/s_ceilf.S         |    4 ++--
 5 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d00ab10..df43a71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-02-27  David S. Miller  <davem@davemloft.net>
+
+	* sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
+	frame pointer instead of stack pointer relative arg slot.
+	* sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
+	* sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
+	* sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
+
 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
 
 	[BZ #3992]
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S b/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S
index 5e32b68..1d940e3 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S
@@ -75,9 +75,9 @@ ENTRY (__ceil)
 	faddd	%f0, %f16, %f18
 	fsubd	%f18, %f16, %f18
 	fcmpd	%fcc2, %f18, %f0
-	stx	%o3, [%fp + 72]
+	stx	%o3, [%sp + 72]
 
-	ldd	[%fp + 72], %f20
+	ldd	[%sp + 72], %f20
 	fmovduge %fcc2, ZERO, %f20
 	faddd	%f18, %f20, %f0
 	fabsd	%f0, %f0
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S b/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S
index e5129fd..1407423 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S
@@ -71,9 +71,9 @@ ENTRY (__ceilf)
 	fadds	%f0, %f16, %f1
 	fsubs	%f1, %f16, %f1
 	fcmps	%fcc2, %f1, %f0
-	st	%o3, [%fp + 68]
+	st	%o3, [%sp + 68]
 
-	ld	[%fp + 68], %f9
+	ld	[%sp + 68], %f9
 	fmovsuge %fcc2, ZERO, %f9
 	fadds	%f1, %f9, %f0
 	fabss	%f0, %f0
diff --git a/sysdeps/sparc/sparc64/fpu/s_ceil.S b/sysdeps/sparc/sparc64/fpu/s_ceil.S
index 85d1a3c..0bda19b 100644
--- a/sysdeps/sparc/sparc64/fpu/s_ceil.S
+++ b/sysdeps/sparc/sparc64/fpu/s_ceil.S
@@ -71,9 +71,9 @@ ENTRY (__ceil)
 	faddd	%f0, %f16, %f18
 	fsubd	%f18, %f16, %f18
 	fcmpd	%fcc2, %f18, %f0
-	stx	%o3, [%fp + STACK_BIAS + 128]
+	stx	%o3, [%sp + STACK_BIAS + 128]
 
-	ldd	[%fp + STACK_BIAS + 128], %f20
+	ldd	[%sp + STACK_BIAS + 128], %f20
 	fmovduge %fcc2, ZERO, %f20
 	faddd	%f18, %f20, %f0
 	fabsd	%f0, %f0
diff --git a/sysdeps/sparc/sparc64/fpu/s_ceilf.S b/sysdeps/sparc/sparc64/fpu/s_ceilf.S
index dd5c2f0..bd5f0fb 100644
--- a/sysdeps/sparc/sparc64/fpu/s_ceilf.S
+++ b/sysdeps/sparc/sparc64/fpu/s_ceilf.S
@@ -69,9 +69,9 @@ ENTRY (__ceilf)
 	fadds	%f1, %f16, %f5
 	fsubs	%f5, %f16, %f5
 	fcmps	%fcc2, %f5, %f1
-	st	%o3, [%fp + STACK_BIAS + 128]
+	st	%o3, [%sp + STACK_BIAS + 128]
 
-	ld	[%fp + STACK_BIAS + 128], %f9
+	ld	[%sp + STACK_BIAS + 128], %f9
 	fmovsuge %fcc2, ZERO, %f9
 	fadds	%f5, %f9, %f0
 	fabss	%f0, %f0
-- 
1.7.6.401.g6a319


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]