https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88702
--- Comment #11 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Martin Liška from comment #10) > (In reply to David Malcolm from comment #9) > > If using a switch is better than a series of tests against constants, would > > it make sense for the compiler to spot this case, and automatically convert > > the conditions to a switch? > > Yes, we've got a PR for it somewhere.. bug 46935? or bug 14799?