[Bug middle-end/78103] Failure to optimize with __builtin_clzl
prathamesh3492 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 10 12:57:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78103
prathamesh3492 at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |prathamesh3492 at gcc dot gnu.org
--- Comment #6 from prathamesh3492 at gcc dot gnu.org ---
With trunk on arm-linux-gnueabihf, nearly identical code is generated for
findLastSet and findLastSet2.
findLastSet:
cmp r0, #0
clzne r0, r0
rsbne r0, r0, #32
bx lr
findLastSet2:
cmp r0, #0
clzne r0, r0
eorne r0, r0, #31
addne r0, r0, #1
bx lr
More information about the Gcc-bugs
mailing list