mpn_get_d broken on MIPS64 ?
tg at gmplib.org
Fri Feb 12 08:15:10 CET 2010
Matthias Bauer <bauerm at pestilenz.org> writes:
gmp-4.3.1's and gmp-4.3.2's
fail on MIPS64 machines on OpenBSD 4.7:
mpn_get_d wrong on denorm
got =[00 08 00 00 00 00 00 00] 1.1125369292536006915e-308
want =[01 70 00 00 20 00 00 00] 9.3326372975691180435e-302
Abort trap (core dumped)
All other tests pass.
I tried on Loongson 2F and MIPS IP32 (SGI O2) CPUs.
config.guess on Loongson 2F says
Output of gcc -v is attached
Reading specs from /usr/lib/gcc-lib/mips64el-unknown-openbsd4.7/3.3.5/specs
Thread model: single
gcc version 3.3.5 (propolice)
That is an ancient version of GCC. Have you tried some slightly newer
I attempted to reproduce this on a mips running GNU/Linux without
success. But I used a different compiler, different kernel (denorms
often trap to the kernel), and might have used a different configuration
than you (you didn't say which one you used).
More information about the gmp-bugs