This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Attachment: a.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]