public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/51057] FAIL: gfortran.dg/quad_2.f90  -O0  execution test on powerpc*-*-*
Date: Sat, 03 Dec 2011 23:16:00 -0000	[thread overview]
Message-ID: <bug-51057-4-GfsgmJVH6M@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51057-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-12-03 23:15:32 UTC ---
(In reply to comment #5)
> It's not a long list if you XFAIL this for all ppc systems.
>You need something along the lines
>
> ! { dg-do run { target { ! { ppc*-*-* } } } }

(In reply to comment #7)
> Did you read the thread?  I specifically recommended that
> the testcase should be XFAILed for the missing sqrtl, too;
> because no one is going to implement a suitable sqrtl in
> c99_functions.c.

So the list will be longer than ppc*-*-*.

> Lowering the accuracy of the test to allow ppc to pass opens up the
> possibility of missing a bug in libquadmath when someone makes a
> change to the library.

I am impressed by the coverage! what about

--- /opt/gcc/_gcc_clean/gcc/testsuite/gfortran.dg/quad_2.f90    2011-11-06
20:24:56.000000000 +0100
+++ /opt/gcc/work/gcc/testsuite/gfortran.dg/quad_2.f90    2011-12-04
00:08:16.000000000 +0100
@@ -48,8 +48,13 @@ 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 (size (real_kinds) >= 4) then
+         if (str3 /= "   1.41421356237309504880168872420969798") call abort()
+         if (str4 /= "1.41421356237309504880168872420969798") call abort()
+       else
+         if (str3(1:37) /= "   1.41421356237309504880168872420969") call
abort()
+         if (str4(1:34) /= "1.41421356237309504880168872420969") call abort()
+       end if
        block
          real(qp), volatile :: fp2a
          fp2a = 2.0_qp

?


  parent reply	other threads:[~2011-12-03 23:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 13:25 [Bug testsuite/51057] New: " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-51057-4-GfsgmJVH6M@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).