This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/59968] Unused BT patterns
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Jan 2014 16:59:33 +0000
- Subject: [Bug target/59968] Unused BT patterns
- Auto-submitted: auto-generated
- References: <bug-59968-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59968
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
For
int
__attribute__((noinline))
foo1 (int x, int y)
{
x &= (1 << y);
return x != 0;
}
we generate
movl %esi, %ecx
movl $1, %eax
sall %cl, %eax
testl %edi, %eax
setne %al
movzbl %al, %eax
ret
I am expecting:
bt %esi, %edi
setc %al
movzbl %al, %eax
ret