https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91026
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-07-01 Ever confirmed|0 |1 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Switch conversion bails out because it knowns that a jump table (or a bit test can) be used for this snippet. Then we prefer to use a jump table then a bit test. With -fno-jump-tables we generate the same code. That said, I confirm it's a small limitation.