1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

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.
This commit is contained in:
David S. Miller
2013-11-06 13:01:36 -08:00
parent e256c4214c
commit 8d6bb57c44
3 changed files with 10 additions and 3 deletions

View 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)