This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32648] missed-optimization: bit-manipulation via bool's
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2012 02:50:36 +0000
- Subject: [Bug tree-optimization/32648] missed-optimization: bit-manipulation via bool's
- Auto-submitted: auto-generated
- References: <bug-32648-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32648
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-27 02:50:36 UTC ---
Right now on the trunk we produce:
movl %edi, %edx
movl %edi, %eax
shrl $3, %edx
shrl $5, %eax
xorl %edx, %eax
andl $1, %eax
ret
Which is much better than what we produce before.