https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94779
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. I think we have linear function detection in switch lowering which for some reason doesn't trigger either.