public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/42833]  New: SRA miscompiles qemu
@ 2010-01-21 16:55 rth at gcc dot gnu dot org
  2010-01-21 16:57 ` [Bug tree-optimization/42833] " rth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2010-01-21 16:55 UTC (permalink / raw)
  To: gcc-bugs

The reduced test case compiles down to 

        xor   %eax,%eax
        ret

which comes from an invalid transformation in .030t.esra

  conv_u.v = vdest;
  res_115 = conv_u.i;
->
  D.2888_153 = VIEW_CONVERT_EXPR<uint32_t>(vdest);
  vdest.v1 = vdest$v1_154;
  vdest.v2 = vdest$v2_152;
  vdest.v3 = vdest$v3_151;
  vdest.v4 = vdest$v4_150;
  conv_u$i_171 = D.2888_153;

Note in particular that the components of vdest are stored after
we've done the view_convert.


-- 
           Summary: SRA miscompiles qemu
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rth at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


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

* [Bug tree-optimization/42833] SRA miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
@ 2010-01-21 16:57 ` rth at gcc dot gnu dot org
  2010-01-21 19:51 ` [Bug tree-optimization/42833] [4.5 Regression] sra " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2010-01-21 16:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rth at gcc dot gnu dot org  2010-01-21 16:56 -------
Created an attachment (id=19683)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19683&action=view)
test case


-- 


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


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

* [Bug tree-optimization/42833] [4.5 Regression] sra miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
  2010-01-21 16:57 ` [Bug tree-optimization/42833] " rth at gcc dot gnu dot org
@ 2010-01-21 19:51 ` pinskia at gcc dot gnu dot org
  2010-01-21 20:29 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-21 19:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/42833] [4.5 Regression] sra miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
  2010-01-21 16:57 ` [Bug tree-optimization/42833] " rth at gcc dot gnu dot org
  2010-01-21 19:51 ` [Bug tree-optimization/42833] [4.5 Regression] sra " pinskia at gcc dot gnu dot org
@ 2010-01-21 20:29 ` rth at gcc dot gnu dot org
  2010-01-21 20:29 ` rth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2010-01-21 20:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

rth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug tree-optimization/42833] [4.5 Regression] sra miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-01-21 20:29 ` rth at gcc dot gnu dot org
@ 2010-01-21 20:29 ` rth at gcc dot gnu dot org
  2010-01-22 18:52 ` rth at gcc dot gnu dot org
  2010-01-22 23:54 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2010-01-21 20:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

rth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-21 20:29:09
               date|                            |


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


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

* [Bug tree-optimization/42833] [4.5 Regression] sra miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-01-21 20:29 ` rth at gcc dot gnu dot org
@ 2010-01-22 18:52 ` rth at gcc dot gnu dot org
  2010-01-22 23:54 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2010-01-22 18:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rth at gcc dot gnu dot org  2010-01-22 18:52 -------
Subject: Bug 42833

Author: rth
Date: Fri Jan 22 18:52:01 2010
New Revision: 156176

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156176
Log:
        PR tree-opt/42833
        * tree-sra.c (sra_modify_assign): Delay re-gimplification of
        the RHS until after generate_subtree_copies has insertted its
        code before the current statement.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr42833.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-sra.c


-- 


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


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

* [Bug tree-optimization/42833] [4.5 Regression] sra miscompiles qemu
  2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-01-22 18:52 ` rth at gcc dot gnu dot org
@ 2010-01-22 23:54 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-22 23:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-01-22 23:54 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2010-01-22 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 16:55 [Bug tree-optimization/42833] New: SRA miscompiles qemu rth at gcc dot gnu dot org
2010-01-21 16:57 ` [Bug tree-optimization/42833] " rth at gcc dot gnu dot org
2010-01-21 19:51 ` [Bug tree-optimization/42833] [4.5 Regression] sra " pinskia at gcc dot gnu dot org
2010-01-21 20:29 ` rth at gcc dot gnu dot org
2010-01-21 20:29 ` rth at gcc dot gnu dot org
2010-01-22 18:52 ` rth at gcc dot gnu dot org
2010-01-22 23:54 ` rguenth at gcc dot gnu dot org

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