https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113136
--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> --- This shouldn't have vectorized as outer-loop vectorization isn't supported. In addition switch statements are not supported, but I guess the nested if confused the code doing the analysis. Will fix when back at work tomorrow.