public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/50628] [4.7 Regression] gfortran.fortran-torture/execute/entry_4.f fails
Date: Thu, 06 Oct 2011 13:51:00 -0000	[thread overview]
Message-ID: <bug-50628-4-cmF44BpIL0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50628-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu.org

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-06 13:50:42 UTC ---
Looks like SRA messes up:

 f2 (integer(kind=4) * a)
 {
+  complex(kind=4) D.1794;
+  complex(kind=4) SR.5;
+  logical(kind=4) SR.4;
   integer(kind=4) D.1791;
   logical(kind=4) D.1790;
   union munion.0.f2 D.1789;
@@ -181,8 +79,11 @@

 <bb 5>:
   D.1789 = __result_master.0.f2;
-  __result = D.1789;
-  D.1779_2 = __result.f2;
+  SR.4_11 = __result_master.0.f2.e2;
+  D.1789.e2 = SR.4_11;
+  D.1794_12 = VIEW_CONVERT_EXPR<complex(kind=4)>(D.1789);
+  SR.5_14 = D.1794_12;
+  D.1779_2 = SR.5_14;
   return D.1779_2;

that looks like quite a stupit transform (the load and the store, using
logical(kind=4) which has the right size but precision 1 - and thus
truncates!)!

FRE then goes and does

   __result_master.0.f2.f2 = __complex__ (4.5e+1, 0.0);
   D.1808 = __result_master.0.f2;
   SR.7_12 = __result_master.0.f2.e2;
-  SR.4_6 = __result_master.0.f2.e2;
+  SR.4_6 = 0;
   SR.7_8 = SR.4_6;
   D.1808.e2 = SR.7_8;
   D.1802_7 = VIEW_CONVERT_EXPR<complex(kind=4)>(D.1808);

because it simply interprets bit zero of 4.5e+1.

Martin?


  parent reply	other threads:[~2011-10-06 13:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 12:59 [Bug middle-end/50628] New: " burnus at gcc dot gnu.org
2011-10-06 13:09 ` [Bug middle-end/50628] " burnus at gcc dot gnu.org
2011-10-06 13:35 ` rguenth at gcc dot gnu.org
2011-10-06 13:51 ` rguenth at gcc dot gnu.org [this message]
2011-10-06 13:55 ` dominiq at lps dot ens.fr
2011-10-06 14:08 ` rguenth at gcc dot gnu.org
2011-10-06 18:15 ` mikael at gcc dot gnu.org
2011-10-06 18:17 ` [Bug middle-end/50628] [4.7 Regression] gfortran.fortran-torture/execute/entry_4.f90 fails mikael at gcc dot gnu.org
2011-10-06 18:28 ` dominiq at lps dot ens.fr
2011-10-10 15:29 ` rguenth at gcc dot gnu.org
2011-11-03 18:47 ` dominiq at lps dot ens.fr
2011-11-12 12:33 ` dominiq at lps dot ens.fr
2011-11-23 16:41 ` jamborm at gcc dot gnu.org
2011-11-24 13:47 ` jamborm at gcc dot gnu.org
2011-12-03 15:19 ` dominiq at lps dot ens.fr
2011-12-13 16:17 ` jamborm at gcc dot gnu.org
2011-12-13 16:27 ` jamborm at gcc dot gnu.org

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-50628-4-cmF44BpIL0@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).