public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/51057] New: FAIL: gfortran.dg/quad_2.f90  -O0  execution test on powerpc*-*-*
@ 2011-11-09 13:25 dominiq at lps dot ens.fr
  2011-11-09 19:08 ` [Bug testsuite/51057] " kargl at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-11-09 13:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51057

             Bug #: 51057
           Summary: FAIL: gfortran.dg/quad_2.f90  -O0  execution test on
                    powerpc*-*-*
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: burnus@net-b.de
              Host: powerpc*-*-*
            Target: powerpc*-*-*
             Build: powerpc*-*-*


gfortran.dg/quad_2.f90 fails on powerpc*-*-* (see
http://gcc.gnu.org/ml/gcc-testresults/2011-11/msg00620.html ). This is due to a
less precise representation of REAL(16) on ppc (i.e., two REAL(8)) than on
Intel platforms. The following patch fixes the failure

--- /opt/gcc/work/gcc/testsuite/gfortran.dg/quad_2.f90    2011-11-06
20:55:43.000000000 +0100
+++ quad_2_db.f90    2011-11-09 14:06:48.000000000 +0100
@@ -48,8 +48,8 @@ program test_qp
      case (16)
        if (str1 /= "   1.00000000000000000000000000000000000") call abort()
        if (str2 /= "1.00000000000000000000000000000000000") call abort()
-       if (str3 /= "   1.41421356237309504880168872420969798") call abort()
-       if (str4 /= "1.41421356237309504880168872420969798") call abort()
+       if (str3(1:37) /= "   1.41421356237309504880168872420969") call abort()
+       if (str4(1:34) /= "1.41421356237309504880168872420969") call abort()
        block
          real(qp), volatile :: fp2a
          fp2a = 2.0_qp


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

end of thread, other threads:[~2012-01-12 21:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-09 13:25 [Bug testsuite/51057] New: FAIL: gfortran.dg/quad_2.f90 -O0 execution test on powerpc*-*-* dominiq at lps dot ens.fr
2011-11-09 19:08 ` [Bug testsuite/51057] " kargl at gcc dot gnu.org
2011-12-01 14:20 ` iains at gcc dot gnu.org
2011-12-03 20:37 ` iains at gcc dot gnu.org
2011-12-03 20:47 ` sgk at troutmask dot apl.washington.edu
2011-12-03 21:09 ` iains at gcc dot gnu.org
2011-12-03 21:23 ` sgk at troutmask dot apl.washington.edu
2011-12-03 22:01 ` dominiq at lps dot ens.fr
2011-12-03 22:24 ` sgk at troutmask dot apl.washington.edu
2011-12-03 23:16 ` dominiq at lps dot ens.fr
2011-12-03 23:37 ` sgk at troutmask dot apl.washington.edu
2012-01-12  6:55 ` burnus at gcc dot gnu.org
2012-01-12  8:00 ` burnus at gcc dot gnu.org
2012-01-12 21:29 ` iains at gcc dot gnu.org
2012-01-12 21:46 ` dominiq at lps dot ens.fr

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).