http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34653
--- Comment #9 from Tony Poppleton <tony.poppleton at gmail dot com> 2013-04-10 02:01:27 UTC --- GCC 4.8.0 with -O2 produces something similar to the original, so the regression noted in comment #7 and comment #8 is now resolved. movzbl (%rdi), %eax shrq $4, %rax movq table(,%rax,8), %rax ret However the original bug from comment #1 is still present.