https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95704
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> --- 13 insns, but the longest chain is 4. As I said, not totally awful, and much better than the branchy code (which does not predict well, for more general inputs anyway).