[PATCH, gfortran testsuite]: Do not generate denormals in gfortran.dg/boz_9.f90

Uros Bizjak ubizjak@gmail.com
Fri Aug 21 17:29:00 GMT 2009


Hello!

It is not nice to upset FP hardware of various target architectures by 
generating denormalized single-precision FP numbers [1] in the 
testsuite. boz_9.f90 testcase fails on alpha due to alpha's somehow 
weird FP unit that requires software assistance to properly handle 
denormals. I believe that the test was not meant to check for various 
hardware oddities, so attached patch replaces denormals with some other 
otherwise sane meaningless floating-point values.

2009-08-21  Uros Bizjak <ubizjak@gmail.com>

     * gfortran.dg/boz_9.f90: Do not generate denormal floating
     point numbers.  Remove -mieee option for alpha*-*-* targets.

Patch was tested on alphaev68-linux-gnu (with and without -mieee) and fixes:

FAIL: gfortran.dg/boz_9.f90  -O2  execution test
FAIL: gfortran.dg/boz_9.f90  -O3 -fomit-frame-pointer  execution test
FAIL: gfortran.dg/boz_9.f90  -O3 -fomit-frame-pointer -funroll-loops  execution test
FAIL: gfortran.dg/boz_9.f90  -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions  execution test
FAIL: gfortran.dg/boz_9.f90  -O3 -g  execution test
FAIL: gfortran.dg/boz_9.f90  -Os  execution test


  OK for mainline, 4.3 and 4.4 ?

[1] http://en.wikipedia.org/wiki/Single_precision_floating-point_format

Uros.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090821/af2f18d3/attachment.txt>


More information about the Gcc-patches mailing list