https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120032
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I'll note that we might want to match 31 - clz (val) aka the table lookup, not 31 - table_lookup, as that will better in case the result is offset by a constant or a variable where the latter would eventually re-associate the '31 - ..' from the expression.