This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35288] Expression reassociation problem
- From: "xinliangli at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Nov 2010 23:40:24 +0000
- Subject: [Bug middle-end/35288] Expression reassociation problem
- Auto-submitted: auto-generated
- References: <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