This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17935] Two consecutive movzbl are generated
- 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: 12 May 2005 17:52:46 -0000
- Subject: [Bug rtl-optimization/17935] Two consecutive movzbl are generated
- References: <20041011163842.17935.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-12 17:52 -------
With the patch for PR 21520, we will get better code.
Right now on the mainline we get:
bar:
movl 4(%esp), %eax
testb $1, (%eax)
jne .L7
movl 8(%esp), %eax
movb (%eax), %al
andl $1, %eax
xorl $1, %eax
movzbl %al, %eax
ret
.p2align 2,,3
.L7:
xorl %eax, %eax
movzbl %al, %eax
ret
but after that patch we should be able to remove the extra movzbl in the second branch.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |21520
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17935