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, testsuite]: Add ieee options to default_format_denormal_?.f90 tests


Hello!

After recent denormal fixes for alpha target, these tests start to run
OK. However, since they use denormals, we have to pass -mieee to
compile options.

2009-09-16  Uros Bizjak  <ubizjak@gmail.com>

	* gfortran.dg/default_format_denormal_2.f90: Add ieee options.
	* gfortran.dg/default_format_denormal_1.f90: Ditto.  Remove
	alpha*-*-* target from XFAIL list.

Patch was tested on alphaev68-linux-gnu {,-mieee} and fixes XPASS. It
probably also helps sh in some way.

OK for 4.3, 4.4 and 4.5?

Uros.

Index: gfortran.dg/default_format_denormal_2.f90
===================================================================
--- gfortran.dg/default_format_denormal_2.f90   (revision 151715)
+++ gfortran.dg/default_format_denormal_2.f90   (working copy)
@@ -7,6 +7,8 @@
 ! wide enough and have enough precision, by checking that values can
 ! be written and read back.
 !
+! { dg-add-options ieee }
+
 include "default_format_2.inc"

 program main
Index: gfortran.dg/default_format_denormal_1.f90
===================================================================
--- gfortran.dg/default_format_denormal_1.f90   (revision 151715)
+++ gfortran.dg/default_format_denormal_1.f90   (working copy)
@@ -1,4 +1,4 @@
-! { dg-do run { xfail alpha*-*-* *-*-darwin[89]* *-*-freebsd*
*-*-mingw* *-*-cygwin* spu-*-* } }
+! { dg-do run { xfail *-*-darwin[89]* *-*-freebsd* *-*-mingw*
*-*-cygwin* spu-*-* } }
 ! Test XFAILed on these platforms because the system's printf() lacks
 ! proper support for denormals.
 !
@@ -6,6 +6,8 @@
 ! wide enough and have enough precision, by checking that values can
 ! be written and read back.
 !
+! { dg-add-options ieee }
+
 include "default_format_1.inc"

 program main


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