2021-05-13 03:35:09 +00:00
|
|
|
# commit c859b32e9d76afe8a3f20bb9528961a573c06937
|
|
|
|
# Author: Alan Modra <amodra@gmail.com>
|
|
|
|
# Date: Tue Apr 1 14:07:42 2014 +1030
|
|
|
|
#
|
|
|
|
# Fix s_copysign stack temp for PowerPC64 ELFv2
|
|
|
|
#
|
|
|
|
# [BZ #16786]
|
|
|
|
# * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
|
|
|
|
#
|
2022-02-11 02:00:59 +00:00
|
|
|
---
|
|
|
|
# sysdeps/powerpc/powerpc64/fpu/s_copysign.S | 4 ++--
|
|
|
|
# 1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
#
|
|
|
|
--- a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
|
|
|
|
+++ b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S
|
2021-05-13 03:35:09 +00:00
|
|
|
@@ -27,11 +27,11 @@
|
|
|
|
/* 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
|