https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106471
--- Comment #1 from Linus Torvalds <torva...@linux-foundation.org> --- Created attachment 53379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53379&action=edit Silly test-case as an attachment too I expected just rep bsfq %rdi, %rax ret from this, but that's not what gcc generates.