This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/38126] suboptimal code for (a && b || !a && !b)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38126

Steven Fuerst <svfuerst at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |svfuerst at gmail dot com

--- Comment #3 from Steven Fuerst <svfuerst at gmail dot com> 2012-02-02 05:25:34 UTC ---
For the first pair of functions, this is even faster:

    neg %rdi
    sbb %eax, %eax
    neg %rsi
    adc $1, %eax
    and $1, %eax
    retq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]