https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103298
--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- The test looks fragile. The instructions TBB and TBH can only support forward branches. If a label in the list of switch targets is backwards then they can't be used and a non-compressed table must be used. My guess is that what's happening here is that with other changes to the code generation all the branches are now forwards and that the TBB/TBH optimisation can be legitimately applied.