public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "spop at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/41811]  New: graphite miscompiles 454.calculix of the SPEC 2k6
Date: Fri, 23 Oct 2009 18:02:00 -0000	[thread overview]
Message-ID: <bug-41811-7780@http.gcc.gnu.org/bugzilla/> (raw)

The kernel that is miscompiled is in shape20h.f and it looks like this:

      do i=1,3
        do j=1,3
          xs(i,j)=0.d0
          do k=1,20
            xs(i,j)=xs(i,j)+xl(i,k)*shp(j,k)
          enddo
        enddo
      enddo

There is an interchange of the j and k loops that is applied to the
kernel.  The statement induction variable order is interchanged for
scat_5 and scat_3, as in S5(scat_1,scat_5,scat_3).  The code generated
by CLooG looks like this:

for (scat_1=0;scat_1<=2;scat_1++) {
  S3(scat_1) ;
  for (scat_3=0;scat_3<=1;scat_3++) {
    S4(scat_1,scat_3) ;
    for (scat_5=0;scat_5<=2;scat_5++) {
      S5(scat_1,scat_5,scat_3) ;
      S6(scat_1,scat_5,scat_3) ;
    }
    S7(scat_1,scat_3) ;
    S26(scat_1,scat_3) ;
    S8(scat_1,scat_3) ;
  }
  S4(scat_1,2) ;
  for (scat_5=0;scat_5<=2;scat_5++) {
    S5(scat_1,scat_5,2) ;
    S6(scat_1,scat_5,2) ;
  }
  S7(scat_1,2) ;
  S26(scat_1,2) ;
  for (scat_3=3;scat_3<=18;scat_3++) {
    for (scat_5=0;scat_5<=2;scat_5++) {
      S5(scat_1,scat_5,scat_3) ;
      S6(scat_1,scat_5,scat_3) ;
    }
  }
  for (scat_5=0;scat_5<=2;scat_5++) {
    S5(scat_1,scat_5,19) ;
  }
}


-- 
           Summary: graphite miscompiles 454.calculix of the SPEC 2k6
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: spop at gcc dot gnu dot org
        ReportedBy: spop at gcc dot gnu dot org


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


             reply	other threads:[~2009-10-23 18:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 18:02 spop at gcc dot gnu dot org [this message]
2009-10-23 18:02 ` [Bug tree-optimization/41811] " spop at gcc dot gnu dot org
2009-10-23 18:16 ` spop at gcc dot gnu dot org
2009-10-23 19:44 ` spop at gcc dot gnu dot org
2009-10-23 19:46 ` spop at gcc dot gnu dot org
2009-10-23 19:54   ` Sebastian Pop
2009-10-23 19:54 ` sebpop at gmail dot com
2009-10-23 20:52 ` spop at gcc dot gnu dot org
2009-11-03  5:58 ` spop at gcc dot gnu dot 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-41811-7780@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).