diff options
author | David S. Miller <davem@davemloft.net> | 2013-11-06 13:01:36 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-07 02:07:54 -0500 |
commit | 2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8 (patch) | |
tree | 2c1afff51a7dc87b775b661ab79ae49a245b0211 /sysdeps | |
parent | 2770d15e7e880821fc586619c59eb45180628e16 (diff) | |
download | glibc-2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8.tar.gz glibc-2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8.tar.xz glibc-2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8.zip |
Fix build on pre-v9 32-bit Sparc.
We cannot use fnegd in this code, as fnegd was added in v9. Only fnegs exists in v8 and earlier. [BZ #15985] * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd on pre-v9 cpus, use a fnegs+fmovs sequence instead.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/sparc/sparc32/fpu/s_fdim.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/sparc/sparc32/fpu/s_fdim.S b/sysdeps/sparc/sparc32/fpu/s_fdim.S index 2f0c5ce583..22f69ce519 100644 --- a/sysdeps/sparc/sparc32/fpu/s_fdim.S +++ b/sysdeps/sparc/sparc32/fpu/s_fdim.S @@ -30,7 +30,8 @@ ENTRY(__fdim) fbug 1f st %g0, [%sp + 76] ldd [%sp + 72], %f0 - fnegd %f0, %f2 + fnegs %f0, %f2 + fmovs %f1, %f3 1: retl fsubd %f0, %f2, %f0 END(__fdim) |