https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121789
--- Comment #3 from Avi Kivity <avi at scylladb dot com> --- > I'll file an issue for the peephole optimization. It's a little tricky since > salq doesn't set the flags like other instructions. Actually gcc is correct and eliminating the testq would be wrong. I'll go stand in the corner.