[Bug target/119509] Missed optimization on AArch64 for comparison of division equivalent to right shift
skrll at netbsd dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 28 12:15:31 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119509
--- Comment #1 from Nick Hudson <skrll at netbsd dot org> ---
a32 seems similarly affected
foo:
bic r0, r0, #-16777216
bic r0, r0, #255
cmp r0, #255
movls r0, #0
movhi r0, #1
bx lr
Could be
foo:
bic r0, r0, #-16777216
bics r0, r0, #255
movne r0, #1
bx lr
More information about the Gcc-bugs
mailing list