https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87205
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |7.3.0, 8.2.0, 9.0
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm that. I've got quite simple patch that eventually generates:
h:
.LFB0:
movl $42, %edi
jmp f
for both cases you provided.
By the way do you have a more complex test-case? This one is simple as all
non-default cases contain same code.