5de29b
# commit c859b32e9d76afe8a3f20bb9528961a573c06937
5de29b
# Author: Alan Modra <amodra@gmail.com>
5de29b
# Date:   Tue Apr 1 14:07:42 2014 +1030
5de29b
# 
5de29b
#     Fix s_copysign stack temp for PowerPC64 ELFv2
5de29b
# 
5de29b
#         [BZ #16786]
5de29b
#         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
5de29b
# 
12745e
diff -urN glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
12745e
--- glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S	2014-05-29 14:13:47.000000000 -0500
12745e
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/fpu/s_copysign.S	2014-05-29 14:13:50.000000000 -0500
5de29b
@@ -27,11 +27,11 @@
5de29b
 /* double [f1] copysign (double [f1] x, double [f2] y);
5de29b
    copysign(x,y) returns a value with the magnitude of x and
5de29b
    with the sign bit of y.  */
5de29b
-	stfd	fp2,56(r1)
5de29b
+	stfd	fp2,-8(r1)
5de29b
 	nop
5de29b
 	nop
5de29b
 	nop
5de29b
-	ld	r3,56(r1)
5de29b
+	ld	r3,-8(r1)
5de29b
 	cmpdi   r3,0
5de29b
 	blt     L(0)
5de29b
 	fabs    fp1,fp1