https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88702
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- (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..