https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62166
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-09-26 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With -O2 -fschedule-insns in GCC 9+, I get decent code: movq %rdx, %r8 movzbl %ch, %eax movsbq %cl, %rdx shrq $16, %rcx addq %r8, %rdx jmp *dispatch(,%rax,8) Confirmed.