Re: (Hardware?) problem with denormal values on mipsel

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
On Fri, 2015-05-22 at 16:12 +0100, James Cowgill wrote:
> On Fri, 2015-05-22 at 16:41 +0200, Ole Streicher wrote:
> > Program received signal SIGILL: Illegal instruction.
> 
> eder and all the other machines eso-midas has failed on are Loongson
> machines. I'll have a further investigate but I wouldn't be too
> surprised if this was yet another Loongson FPU bug...

Yep it's a hardware problem. The following assembly dies (raises SIGILL)
at 'sqrt.s' on the Loongsons and works everywhere else:

===
        .set mips2
        .text
        .global main
        .type main, @function
main:
        lui $t0, %hi(value)
        lwc1 $f0, %lo(value)($t0)
        nop
        sqrt.s $f0, $f0
        jr $ra

        .data
value:
        .float 1.1342362e-39
===

There is now only one non-loongson build machine (mayer) so it doesn't
look good. All the solutions I can think of for this sound really
horrible (stuff like disabling the FPUs) :(

Thanks,
James
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCgAGBQJVX1jiAAoJENp9Vyz7AWUH/UoQAKf/mLQIL2Guv5MD/V4Jxs7e
kEG9o9vH8wrH/gzC0iD9K2niWSP5eYq8nt5pgMf7C3QneGadIg0nJn8o00sMSD47
Q+4CzE6SZznLYeX4A4LrwSJISEmc2i7YG21bwrCFXajRxwbpp3ezIgFZ97LIV8DN
kTsCayW243aA6zB2LIbq9c8M59xEXBnvVModGV8MBwd8xM0WNVm71sZBAuqiCNgG
bjVJV1hg0LRx/YnzwRkbrxkiCGthcN1PhoWu7epiYeqI17TmM7hePcqshkIxl4gW
QP/TW0ES2vzYSKsO6DJRsFo0i1b8lTg93NLm9ds84TFZ05YGlNKjc5VemjIr7z/p
NdxgfejmBzwuk34YmaX2K5+54zCrx7SBrOe9iwVsBD0O+QbK4VHZBP42JggsZZrX
89axnf3RevXFnRf9Y/Z8BKyT4AmnF6NV0sgdpvqJV0dboh39X1GNxNK+G/dDiYjM
e0fQuKRiComvvVVuBjEkOmqY9cbC1MEGSAFkZCxXVKrz63hQpE3SRS8D0CVFn4cc
Ifpl8SEfnrKHyaPwR/qcsLEqzIEDbjvL7r7uNjIgjswtk2ffvfYtD5v43cU263qM
hM8c9enmNEKMd5jHeB9cpWiluwyKRcG+EJaTMUS1j3GVEaMJSqc9oq540ZX6kAJS
UWtN/F0H+N+GOmICGczV
=YyM+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.