https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99863
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Martin Liška from comment #4) > Started with r10-7268-g529ea7d9596b26ba. Reverting on trunk fixes the issue. Good vs. bad assembly shows the likely culprit: shrq $32, %rax - movq %rax, %r8 - testq %rdi, %rdi + movq %rax, %rdi setne %al