[parisc-linux] floating point exception error

David Huggins-Daines dhd@linuxcare.com
29 Sep 2000 14:28:40 -0400

David Huggins-Daines <dhd@linuxcare.com> writes:

> So it looks like we are either not managing to set up %fr0 properly on
> process startup or we are mangling it in the kernel or libc somewhere
> along the way.  I'll investigate further today.

GAR!  So the problem is obvious.  Not only is GCC emitting the wrong
comparison condition (<> vs. !=), but log(-8.0) is returning a
signalling NaN on GNU/Linux, and a quiet one on HP/UX:

avalanche:~# ./fptest3
foo.l is 7fffffffffffffff
!!die_if_kernel: fptest3(154): Floating point exception 14

bash-2.03$ ./fptest3
foo.l = 7ff4000000000000

Time for the self-LART again I guess :)

dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.