https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94779
--- Comment #2 from Gabriel Ravier <gabravier at gmail dot com> --- It's fully optimized ? I don't see how. This is exactly what I was complaining about : It could be further optimized to leal 1(%rdi), %eax ret but it isn't