This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, gfortran testsuite]: Do not generate denormals in gfortran.dg/boz_9.f90
- From: Tobias Burnus <burnus at net-b dot de>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Fri, 21 Aug 2009 19:09:06 +0200
- Subject: Re: [PATCH, gfortran testsuite]: Do not generate denormals in gfortran.dg/boz_9.f90
- References: <4A8EC93A.4080605@gmail.com>
On 08/21/2009 06:20 PM, Uros Bizjak wrote:
> 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.
Indeed, for the test case it can be any number. (In real world programs,
however, it is often used to write NaN/INF etc. - even though it is not
portable. But since when do programmers care about portability ;-)
> OK for mainline, 4.3 and 4.4 ?
Yes. Thanks for tracing and fixing the problem!
Tobias