public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xinliangli at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/35288] Expression reassociation problem
Date: Tue, 02 Nov 2010 23:40:00 -0000	[thread overview]
Message-ID: <20101102234000.hAb_iWvBBcAn5biJ2OD77h1UqbnuExWMOVQMnCzCpAY@z> (raw)
In-Reply-To: <bug-35288-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from davidxl <xinliangli at gmail dot com> 2010-11-02 23:40:15 UTC ---
LLVM got it right:


    addl    %esi, %edi
    leal    (%rdx,%rdi,2), %eax

vs gcc:


    addl    %esi, %edx
    leal    (%rsi,%rdi,2), %edi
    leal    (%rdi,%rdx), %eax

vs open64:


    leal 0(%rdi,%rsi,1), %eax         # [0] 
    addl %esi,%edx                    # [0] 
    addl %edx,%edi                    # [1] 
    addl %edi,%eax                    # [2] 

David


       reply	other threads:[~2010-11-02 23:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-35288-4@http.gcc.gnu.org/bugzilla/>
2010-11-02 23:40 ` xinliangli at gmail dot com [this message]
2021-12-23  8:14 ` [Bug tree-optimization/35288] " pinskia at gcc dot gnu.org
2008-02-22  6:36 [Bug middle-end/35288] New: " xinliangli at gmail dot com
2008-02-22 10:56 ` [Bug middle-end/35288] " rguenth 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=20101102234000.hAb_iWvBBcAn5biJ2OD77h1UqbnuExWMOVQMnCzCpAY@z \
    --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).