https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30455
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- gcc-7 generates for the original testcase: add_zf: addl %esi, (%rdi) movl %ecx, %eax cmove %edx, %eax ret So, fixed.