https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105135
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |tree-optimization --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For aarch64 to_lower_1/to_lower_2 is better: and w0, w0, 255 sub w1, w0, #65 and w1, w1, 255 cmp w1, 25 cset w1, ls add w0, w0, w1, lsl 5 ret vs and w0, w0, 255 sub w2, w0, #65 add w1, w0, 32 and w2, w2, 255 and w1, w1, 255 cmp w2, 25 csel w0, w0, w1, hi ret