------- 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