about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64/fpu
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-04-01 14:07:42 +1030
committerAlan Modra <amodra@gmail.com>2014-04-01 14:10:22 +1030
commitc859b32e9d76afe8a3f20bb9528961a573c06937 (patch)
tree354bfa33b842d182ee2e0a4c1452f7651bdee795 /sysdeps/powerpc/powerpc64/fpu
parent8795b4a443a8f19d279e0c1bc99b73d1f5aec166 (diff)
downloadglibc-c859b32e9d76afe8a3f20bb9528961a573c06937.tar.gz
glibc-c859b32e9d76afe8a3f20bb9528961a573c06937.tar.xz
glibc-c859b32e9d76afe8a3f20bb9528961a573c06937.zip
Fix s_copysign stack temp for PowerPC64 ELFv2
	[BZ #16786]
	* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/fpu')
-rw-r--r--sysdeps/powerpc/powerpc64/fpu/s_copysign.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
index 51681aa2a8..49c793d386 100644
--- a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
+++ b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
@@ -27,11 +27,11 @@ ENTRY(__copysign)
 /* double [f1] copysign (double [f1] x, double [f2] y);
    copysign(x,y) returns a value with the magnitude of x and
    with the sign bit of y.  */
-	stfd	fp2,56(r1)
+	stfd	fp2,-8(r1)
 	nop
 	nop
 	nop
-	ld	r3,56(r1)
+	ld	r3,-8(r1)
 	cmpdi   r3,0
 	blt     L(0)
 	fabs    fp1,fp1