This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Reworking of the "default format" testcases
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 6 Oct 2007 22:23:52 +0100
- Subject: Reworking of the "default format" testcases
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; bh=lJrl7KvqEXG6J0NUiT6HmtviWFcGrYooiEcWxRIKcJc=; b=NztOMZhko5qy2wt4jB9TkGYpCICOQCVo4ZsIHhxvjNMrCwf10FEbBLj/Anko9UZ98oUFNqfdMSSggM+wR9w/Smfembbabx4/tg0nxoRw0Je8eo1HxflByPJvNK8Y2vPiZZI3ZFZwKFhCPSWrGWJZZHCy+hQ8BX5ogaFu+GhuGfk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=bzDttJeRBy3s/4ojqJkZKCYBKvsjDBFN/yyS+tiDIWAKpCflKScNx7j7bGvSVXlWMNT4Xg25owiTKJXi6Wgs00Z39De0HNWu8fpvPD9kFWmrs62sgzSrc5DOqbM6/IUoW5ydk3zjv4zVc3YrkF1Bw+XG4uFQoC7zsZZOFF8/xHY=
Hi all,
Following discussion with Steve, I've reworked the testcases that
came with my "default format" patch. They check that we can output
reals of all kinds and read them back without any loss of precision.
There are two kinds of problems they triger: some platforms have
crappy printf() implementations when it comes to long doubles; also,
some don't allow writing and reading back denormals without loss of
precision. So, I've decided to break the tests down to allow us to
XFAIL some features while still checking others.
As I expect that some of these may fail (or start failing) in the
future on some platforms. If you spot these failures, please report
them to the list. Here is a list of what they test and why they could
fail:
* gfortran.dg/default_format_1.f90: tests kinds 4 and 8, only
normalized numbers; shouldn't fail
* gfortran.dg/default_format_2.f90: tests kinds 4 and 8,
denormalized numbers; might fail
* gfortran.dg/default_format_denormal_1.f90: tests kinds 10 or 16,
only normalized numbers; fails on darwin, probably shouldn't fail
elsewhere
* gfortran.dg/default_format_denormal_2.f90: tests kinds 10 or 16,
denormalized numbers; might fail
* gfortran.dg/default_format_1.inc: Included file for above tests.
* gfortran.dg/default_format_2.inc: Included file for above tests.
Thanks,
FX