[Bug target/82858] __builtin_add_overflow() generates suboptimal code with unsigned types on x86

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 6 13:17:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82858

--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
Actually, -m32 -march=i386 -mtune=generic generates expected code:

        movl    8(%esp), %eax
        addl    4(%esp), %eax
        sbbl    %edx, %edx
        orl     %edx, %eax
        ret

-march=i386 does not have cmove.


More information about the Gcc-bugs mailing list