mips: clear condition bit 23 in fpu too
authorGuido Guenther <agx@sigxcpu.org>
Mon, 27 Aug 2012 16:20:25 +0000 (12:20 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 27 Aug 2012 16:41:28 +0000 (12:41 -0400)
commit89570c6269318b01646448810bcb28342f18ea0b
tree248fb30623f8cb39a500aa1f29152c573b43307d
parent563c840564dce77de47b3912a741baa93bdd3b67
mips: clear condition bit 23 in fpu too

We've been carrying this in Gentoo for quite a long time to fix some test
failures that people hit.

Original message:
> make[4]: *** [/glibc/glibc-package-2.3/mips-linux/obj/math/test-fpucw.out] Error 1
This test fails since the read back fpu control word is 0x80000 instead
of 0x0. I wonder if this patch is correct:
...
which additionally masks out the condition bit 23 - note that the other
condition bits (25-31) are masked out too?

URL: http://sourceware.org/ml/libc-alpha/2002-10/msg00392.html
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ports/ChangeLog.mips
ports/sysdeps/mips/fpu_control.h