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 tree-optimization/59354] [4.8/4.9/5 Regression] Element swizzling produces invalid result with -O3
Date: Wed, 14 Jan 2015 08:52:00 -0000	[thread overview]
Message-ID: <bug-59354-4-kltvYOWGV4@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59354-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59354

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
            Summary|[4.8/4.9/5/Regression]      |[4.8/4.9/5 Regression]
                   |Element swizzling produces  |Element swizzling produces
                   |invalid result with -O3     |invalid result with -O3

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Uroš Bizjak from comment #3)
> It looks to me that cunrolli pass is messing up element swizzling code.
> 
> bisection-friendly C testcase:
> 
> --cut here--
> void abort (void);
> 
> unsigned int a[256];
> unsigned char b[256];
> 
> int main()
> {
>   int i, z, x, y;
> 
>   for(i = 0; i < 256; i++)
>     a[i] = i % 5;
> 
>   for (z = 0; z < 16; z++)
>     for (y = 0; y < 4; y++)
>       for (x = 0; x < 4; x++)
>         b[y*64 + z*4 + x] = a[z*16 + y*4 + x];
> 
>   if (b[4] != 1)
>     abort ();
> 
>   return 0;
> }
> --cut here--

This testcase works for me on trunk now (maybe one of my recent vectorizer
fixes) but it miscompiles on the 4.9 and 4.8 branches (4.7 seems to work).

Maybe somebody can bisect what fixed it on trunk? (and confirm the bug is
indeed gone on trunk)
>From gcc-bugs-return-473149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 14 08:54:56 2015
Return-Path: <gcc-bugs-return-473149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 2951 invoked by alias); 14 Jan 2015 08:54:56 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 2928 invoked by uid 48); 14 Jan 2015 08:54:52 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/64592] [5 regression] tramp3d EH unwind tables are 50% bigger with mainline compared to GCC 4.9
Date: Wed, 14 Jan 2015 08:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget version target_milestone
Message-ID: <bug-64592-4-dndT5kSN6w@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64592-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64592-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01143.txt.bz2
Content-length: 525

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd592

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux
            Version|unknown                     |5.0
   Target Milestone|---                         |5.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
accumulate-outgoing-args default setting change?


  parent reply	other threads:[~2015-01-14  8:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30 14:25 [Bug c++/59354] New: Unexpected result in g++ when casting int to char from an stl vector to an array jori.liesenborgs at gmail dot com
2015-01-01 13:54 ` [Bug c++/59354] " gcc-bugzilla at contacts dot eelis.net
2015-01-07 20:30 ` [Bug middle-end/59354] " ville.voutilainen at gmail dot com
2015-01-08 11:04 ` [Bug tree-optimization/59354] Element swizzling produces invalid result with -O3 (tree-cunrolli pass problem?) ubizjak at gmail dot com
2015-01-08 14:52 ` [Bug tree-optimization/59354] [4.8/4.9/5/Regression] " hjl.tools at gmail dot com
2015-01-08 14:54 ` jakub at gcc dot gnu.org
2015-01-08 14:59 ` hjl.tools at gmail dot com
2015-01-14  7:02 ` [Bug tree-optimization/59354] [4.8/4.9/5/Regression] Element swizzling produces invalid result with -O3 ubizjak at gmail dot com
2015-01-14  8:52 ` rguenth at gcc dot gnu.org [this message]
2015-01-14  8:57 ` [Bug tree-optimization/59354] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-01-14  8:59 ` ville.voutilainen at gmail dot com
2015-01-14  9:47 ` rguenther at suse dot de
2015-01-14 14:06 ` rguenth at gcc dot gnu.org
2015-01-14 14:09 ` [Bug tree-optimization/59354] [4.8/4.9 " rguenth at gcc dot gnu.org
2015-02-23 12:19 ` rguenth at gcc dot gnu.org
2015-06-23  8:46 ` [Bug tree-optimization/59354] [4.8 " rguenth 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-59354-4-kltvYOWGV4@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).