Fix s_copysign stack temp for PowerPC64 ELFv2

[BZ #16786]
	* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
This commit is contained in:
Alan Modra 2014-04-01 14:07:42 +10:30
parent 8795b4a443
commit c859b32e9d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-04-01 Alan Modra <amodra@gmail.com>
[BZ #16786]
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
2014-03-31 Joseph Myers <joseph@codesourcery.com>
[BZ #6803]

View File

@ -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