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: 22 Apr 2009 22:20:04 -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 #6 from pinskia at gcc dot gnu dot org 2009-04-22 22:20 -------
We now get:
foo:
movl $1, %eax
movl g+4, %edx
testl %edx, %edx
jne .L3
movl 4(%esp), %edx
cmpl g, %edx
jb .L3
ret
.p2align 2,,3
.L3:
xorl %eax, %eax
ret
Fixed and has been fixed since 4.3.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14237