Bug#781892: (Hardware?) problem with denormal values on mipsel

Aaro Koskinen <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

On Fri, May 22, 2015 at 11:00:18PM +0100, James Cowgill wrote:
> On Sat, 2015-05-23 at 00:04 +0300, Aaro Koskinen wrote:
> > On Fri, May 22, 2015 at 05:27:14PM +0100, James Cowgill wrote:
> > > 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
> > > ===
> > 
> > Is this a standalone reproducer program for the problem? Because
> > I tried it on on my Loongson box and didn't get any SIGILL...
> 
> It should be. I tried it on some 3A machines at work and it crashed
> there (and then some other machines which didn't crash). There's a 2F I
> can try on Tuesday.

My Loongson is 2F...

> Does the original gfortran code crash for you?

I don't have gfortran available on my system.

A.
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.