[Bug target/99591] Improving __builtin_add_overflow performance on x86-64

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 1 05:32:21 GMT 2021


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Looks fixed for GCC 11+.

signed2_overflow(short, short):
.LFB0:
        .cfi_startproc
        addw    %si, %di
        seto    %al
        ret

signed1_overflow(signed char, signed char):
.LFB1:
        .cfi_startproc
        addb    %sil, %dil
        seto    %al
        ret


More information about the Gcc-bugs mailing list