public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux
@ 2014-06-30  1:48 Bill Schmidt
  2014-06-30 15:28 ` David Edelsohn
  2014-06-30 16:16 ` Mike Stump
  0 siblings, 2 replies; 4+ messages in thread
From: Bill Schmidt @ 2014-06-30  1:48 UTC (permalink / raw)
  To: gcc-patches; +Cc: dje.gcc, tobias.burnus

Hi,

The test in gfortran.dg/round_4.f90, introduced in GCC 4.9, checks for
correct behavior of different rounding modes.  However, for
quad-precision floating-point, it requires that the number
0.10000000000000000000000000000000000481 be exactly represented.  Since
the PowerPC long double implementation (double-double) only guarantees
31 bits of precision, the test fails for the real(qp) portions of the
test.  Thus this patch marks the test invalid for PowerPC Linux for now.
(We may want to also do this for other subtargets; let me know if so.)

At such time as IEEE 128-bit floating-point is supported by the PowerPC
port, we should revisit this.

Is this ok for trunk and 4.9?

Thanks,
Bill


2014-06-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* gfortran.dg/round_4.f90: Skip for powerpc*-*-linux* since the
	test requires greater precision than the current PowerPC long
	double implementation supports.


Index: gcc/testsuite/gfortran.dg/round_4.f90
===================================================================
--- gcc/testsuite/gfortran.dg/round_4.f90	(revision 212074)
+++ gcc/testsuite/gfortran.dg/round_4.f90	(working copy)
@@ -1,6 +1,7 @@
 ! { dg-do run }
 ! { dg-add-options ieee }
 ! { dg-skip-if "PR libfortran/58015" { hppa*-*-hpux* } }
+! { dg-skip-if "IBM long double 31 bits of precision, test requires 38" { powerpc*-*-linux* } }
 !
 ! PR fortran/35862
 !


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux
  2014-06-30  1:48 [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux Bill Schmidt
@ 2014-06-30 15:28 ` David Edelsohn
  2014-06-30 16:16 ` Mike Stump
  1 sibling, 0 replies; 4+ messages in thread
From: David Edelsohn @ 2014-06-30 15:28 UTC (permalink / raw)
  To: Bill Schmidt; +Cc: GCC Patches, Tobias Burnus

On Sun, Jun 29, 2014 at 9:48 PM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> Hi,
>
> The test in gfortran.dg/round_4.f90, introduced in GCC 4.9, checks for
> correct behavior of different rounding modes.  However, for
> quad-precision floating-point, it requires that the number
> 0.10000000000000000000000000000000000481 be exactly represented.  Since
> the PowerPC long double implementation (double-double) only guarantees
> 31 bits of precision, the test fails for the real(qp) portions of the
> test.  Thus this patch marks the test invalid for PowerPC Linux for now.
> (We may want to also do this for other subtargets; let me know if so.)
>
> At such time as IEEE 128-bit floating-point is supported by the PowerPC
> port, we should revisit this.
>
> Is this ok for trunk and 4.9?
>
> Thanks,
> Bill
>
>
> 2014-06-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
>
>         * gfortran.dg/round_4.f90: Skip for powerpc*-*-linux* since the
>         test requires greater precision than the current PowerPC long
>         double implementation supports.

Okay.

I wonder if this is passing on AIX because AIX defaults to double?

Thanks, David

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux
  2014-06-30  1:48 [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux Bill Schmidt
  2014-06-30 15:28 ` David Edelsohn
@ 2014-06-30 16:16 ` Mike Stump
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Stump @ 2014-06-30 16:16 UTC (permalink / raw)
  To: Bill Schmidt, Dominique Dhumieres
  Cc: GCC Patches, David Edelsohn, tobias.burnus

On Jun 29, 2014, at 6:48 PM, Bill Schmidt <wschmidt@linux.vnet.ibm.com> wrote:
> +! { dg-skip-if "IBM long double 31 bits of precision, test requires 38" { powerpc*-*-linux* } }

Thanks for the comment.  Can someone confirm that this fails on darwin and should be skipped there as well?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux
@ 2014-06-30  9:57 Tobias Burnus
  0 siblings, 0 replies; 4+ messages in thread
From: Tobias Burnus @ 2014-06-30  9:57 UTC (permalink / raw)
  To: Bill Schmidt, gcc-patches, fortran

Hi Bill,

Bill Schmidt wrote:
> The test in gfortran.dg/round_4.f90, introduced in GCC 4.9, checks for
> correct behavior of different rounding modes.  However, for
> quad-precision floating-point, it requires that the number
> 0.10000000000000000000000000000000000481 be exactly represented.  Since
> the PowerPC long double implementation (double-double) only guarantees
> 31 bits of precision, the test fails for the real(qp) portions of the
> test.  Thus this patch marks the test invalid for PowerPC Linux for now.
> (We may want to also do this for other subtargets; let me know if so.)
> 
> At such time as IEEE 128-bit floating-point is supported by the PowerPC
> port, we should revisit this.
> 
> Is this ok for trunk and 4.9?

Looks good to me. Thanks for digging into test-suite failures!

However, it probably wouldn't harm either to add a test case for
powerpc*-*-* (which might also work with hppa-*-*-hpux) for the rounding.
I worry less about the quad-precision (qp) rounding, but I think it would
be useful to test that the single and double precision rounding work. But
as it requires an extra file, one could also check for the 31bit QP as
well. Thus, if you have some spare cycles and agree on the usefulness ...

Tobias

> 2014-06-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
> 
> 	* gfortran.dg/round_4.f90: Skip for powerpc*-*-linux* since the
> 	test requires greater precision than the current PowerPC long
> 	double implementation supports.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-30 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30  1:48 [PATCH, rs6000, testsuite] Skip gfortran.dg/round_4.f90 for PowerPC Linux Bill Schmidt
2014-06-30 15:28 ` David Edelsohn
2014-06-30 16:16 ` Mike Stump
2014-06-30  9:57 Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).