This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/14237] suboptimal comparison between long and long long
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2006 20:26:52 -0000
- Subject: [Bug rtl-optimization/14237] suboptimal comparison between long and long long
- References: <bug-14237-5009@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-15 20:26 -------
Hmm, we get:
foo:
movl 4(%esp), %edx
xorl %ecx, %ecx
movl $1, %eax
cmpl g+4, %ecx
jb .L3
cmpl g, %edx
jb .L3
ret
.p2align 2,,3
.L3:
xorl %eax, %eax
ret
-----
The only thing which is semi wrong now is:
xorl %ecx, %ecx
cmpl g+4, %ecx
Everything else looks good (well except on ppc where we still get the different
compares).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14237