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

2015-05-28 Thread Maciej W. Rozycki
On Thu, 28 May 2015, James Cowgill wrote: > Your test case is wrong. If compiled without optimization, GCC call > 'sqrt' from glibc instead of using the sqrt.s MIPS instruction. With > optimization GCC will remove the call altogether. This is different to > fortran because in fortran SQRT is a bui

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

2015-05-28 Thread James Cowgill
On Wed, 2015-05-27 at 20:46 +0200, Ole Streicher wrote: > Hi all, > > Am 27.05.2015 um 15:45 schrieb James Cowgill: > > There's probably still a hardware bug in here somewhere, but before 3.16 > > the kernel was fixing it with the math emulator. > > Without understanding the discussion in detail,

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

2015-05-27 Thread Maciej W. Rozycki
On Wed, 27 May 2015, Ole Streicher wrote: > > If you suspect a bug in emulation, then please try narrowing it down to > > the machine instruction that produces the wrong result, you might be able > > to track it down in your Fortran program by single-stepping the program in > > GDB. > > Sorr

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

2015-05-27 Thread Ole Streicher
Am 27.05.2015 um 21:06 schrieb Maciej W. Rozycki: > On Wed, 27 May 2015, Ole Streicher wrote: > >> It is something specific what gfortran produces (and not gcc), and it is not >> just a missing emulation (since normalized numbers work); it may be an >> incomplete emulation. > > If you suspect a

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

2015-05-27 Thread Maciej W. Rozycki
On Wed, 27 May 2015, Ole Streicher wrote: > It is something specific what gfortran produces (and not gcc), and it is not > just a missing emulation (since normalized numbers work); it may be an > incomplete emulation. If you suspect a bug in emulation, then please try narrowing it down to the m

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

2015-05-27 Thread Ole Streicher
Hi all, Am 27.05.2015 um 15:45 schrieb James Cowgill: > There's probably still a hardware bug in here somewhere, but before 3.16 > the kernel was fixing it with the math emulator. Without understanding the discussion in detail, I'd like to bring a few points here back: the issue is not about SIGI

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

2015-05-27 Thread Maciej W. Rozycki
On Wed, 27 May 2015, James Cowgill wrote: > > > Commit 2d83fea786d7 in 4.1-rc1 ('MIPS: Correct FP ISA requirements') > > > fixed the underlying sqrt.s emulation bug. > > > > > > It would be good if the 4.1-rc1 patch or at least the 'case fsqrt_op' > > > part (which is the fix for this bug) can be

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

2015-05-27 Thread Maciej W. Rozycki
On Wed, 27 May 2015, James Cowgill wrote: > Thanks! The kernel was the important part which was different to my > setup. > > There's probably still a hardware bug in here somewhere, but before 3.16 > the kernel was fixing it with the math emulator. > > From what I can see: > Commit 08a07904e182

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

2015-05-27 Thread James Cowgill
On Wed, 2015-05-27 at 18:13 +0100, Maciej W. Rozycki wrote: > On Wed, 27 May 2015, James Cowgill wrote: > > > Thanks! The kernel was the important part which was different to my > > setup. > > > > There's probably still a hardware bug in here somewhere, but before 3.16 > > the kernel was fixing i

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

2015-05-27 Thread Debian Bug Tracking System
Processing control commands: > reassign -1 src:linux 3.16.7-ckt9-2 Bug #781892 [gfortran-4.9] gfortran-4.9: denormal value produces illegal instruction on mipsel Bug reassigned from package 'gfortran-4.9' to 'src:linux'. No longer marked as found in versions gcc-4.9/4.9.2-10. Ignoring request to

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

2015-05-27 Thread James Cowgill
Control: reassign -1 src:linux 3.16.7-ckt9-2 Control: retitle -1 linux: mips sqrt.s instruction not emulated on Loongson processors Control: tags -1 fixed-upstream # Will be fixed in 4.1 On Tue, 2015-05-26 at 20:21 +0300, Aaro Koskinen wrote: > On Tue, May 26, 2015 at 10:13:35AM +0100, James Cowg