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: Sun, 22 Apr 2018 03:56:30 +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/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32648
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
For ARM64 we get:
f1:
ubfx x1, x0, 5, 1
ubfx x0, x0, 3, 1
eor w0, w1, w0
ret
f2:
eor w0, w0, w0, lsl 2
ubfx x0, x0, 5, 1
ret
Which might be just as the same really depending if the lsl is not split away
from the eor.