]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix build on pre-v9 32-bit Sparc.
authorDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2013 21:01:36 +0000 (13:01 -0800)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:43:50 +0000 (08:43 -0500)
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.

(cherry picked from commit 2216e48645dbd297cdc0f4050fdfc0b52e2a4ab8)

sysdeps/sparc/sparc32/fpu/s_fdim.S

index 2f0c5ce58380d8cee6927c274ace091dac288113..22f69ce519486c56e6209f233ae723c8ed9e48fc 100644 (file)
@@ -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)