public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/60819] New: dse1 removing not-dead insn (aliasing issue?)
@ 2014-04-11 11:37 glisse at gcc dot gnu.org
  2014-04-11 12:09 ` [Bug c/60819] " rguenth at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-04-11 11:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60819
           Summary: dse1 removing not-dead insn (aliasing issue?)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
            Target: x86_64-linux-gnu

#include <mmintrin.h>

int f (__m64 const __A, int const __N)
{ return ((__v4hi)__A)[__N]; }


compiler with -O2, produces:

    movslq    %edi, %rdi
    movswl    -8(%rsp,%rdi,2), %eax
    ret

dse1 removed the instruction that copies xmm0 to the stack!

Could be related to PR 56965, I didn't try the patch in that PR.
Already broken in gcc-4.6, not a (recent) regression.


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

end of thread, other threads:[~2014-05-23  9:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11 11:37 [Bug rtl-optimization/60819] New: dse1 removing not-dead insn (aliasing issue?) glisse at gcc dot gnu.org
2014-04-11 12:09 ` [Bug c/60819] " rguenth at gcc dot gnu.org
2014-04-11 12:23 ` rguenth at gcc dot gnu.org
2014-04-11 12:25 ` rguenth at gcc dot gnu.org
2014-04-11 12:26 ` rguenth at gcc dot gnu.org
2014-04-11 12:27 ` glisse at gcc dot gnu.org
2014-04-11 12:31 ` rguenther at suse dot de
2014-04-11 12:32 ` rguenth at gcc dot gnu.org
2014-04-11 12:43 ` glisse at gcc dot gnu.org
2014-04-11 12:51 ` rguenther at suse dot de
2014-04-11 13:16 ` glisse at gcc dot gnu.org
2014-04-11 13:19 ` glisse at gcc dot gnu.org
2014-04-12  8:30 ` glisse at gcc dot gnu.org
2014-04-14 11:59 ` rguenth at gcc dot gnu.org
2014-04-22 13:26 ` rguenth at gcc dot gnu.org
2014-05-23  9:50 ` rguenth at gcc dot gnu.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).