public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "izamyatin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/52395] New: [4.7 Regression] Alignment issue at O2
Date: Mon, 27 Feb 2012 07:50:00 -0000	[thread overview]
Message-ID: <bug-52395-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 52395
           Summary: [4.7 Regression] Alignment issue at O2
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: izamyatin@gmail.com


Created attachment 26759
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26759
Test case for the issue

I noticed that after the following commit 

commit 25b3bbad6624357c1ac6a31e0be6fca37182fb78
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Jan 27 14:56:54 2012 +0000

    2012-01-27  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/50444
        * tree-sra.c (build_ref_for_offset): Properly adjust the
        MEM_REF type for unaligned accesses.

        * gcc.dg/torture/pr50444.c: New testcase.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183630
138bc75d-0d04-0410-961f-82ee72b054a4

 alignment of some memory references was spoiled. For attached test case I see
following:

  before commit (A32):

#(insn:TI 6 11 7 2 (set (mem:SF (reg/v/f:DI 5 di [orig:61 __x ] [61]) [2
__x_1(D)->re+0 S4 A32])
#        (const_double:SF 0.0 [0x0.0p+0])) test.cpp:13 108 {*movsf_internal}
#     (nil))
    movl    $0x00000000, (%rdi)    # 6    *movsf_internal/5    [length = 16]


  after commit (A8):

#(insn:TI 6 11 7 2 (set (mem:SF (reg/v/f:DI 5 di [orig:61 __x ] [61]) [2
__x_1(D)->re+0 S4 A8])
#        (const_double:SF 0.0 [0x0.0p+0])) test.cpp:13 108 {*movsf_internal}
#     (nil))
    movl    $0x00000000, (%rdi)    # 6    *movsf_internal/5    [length = 16]


 Compiled just with O2.

 Originally I saw this after compilation of complex_io.cc from libstdc++-v3


             reply	other threads:[~2012-02-27  7:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27  7:50 izamyatin at gmail dot com [this message]
2012-02-27  9:40 ` [Bug tree-optimization/52395] " rguenth at gcc dot gnu.org
2012-02-27  9:51 ` izamyatin at gmail dot com
2012-02-27 10:00 ` izamyatin at gmail dot com
2012-02-27 10:04 ` rguenth at gcc dot gnu.org
2012-02-27 10:06 ` rguenth at gcc dot gnu.org
2012-02-27 10:31 ` rguenth at gcc dot gnu.org
2012-02-27 10:49 ` [Bug tree-optimization/52395] [4.7 Regression] Too conservative alignment info from SRA rguenth at gcc dot gnu.org
2012-02-27 13:52 ` rguenth at gcc dot gnu.org
2012-02-27 14:55 ` rguenth at gcc dot gnu.org
2012-02-27 16:42 ` jamborm at gcc dot gnu.org
2012-02-27 17:19 ` jamborm at gcc dot gnu.org
2012-02-28  9:04 ` rguenther at suse dot de
2012-02-28  9:20 ` rguenth at gcc dot gnu.org
2012-02-28  9:29 ` 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-52395-4@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).