This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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


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


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