This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38126] suboptimal code for (a && b || !a && !b)
- From: "svfuerst at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 05:25:34 +0000
- Subject: [Bug middle-end/38126] suboptimal code for (a && b || !a && !b)
- Auto-submitted: auto-generated
- References: <bug-38126-4@http.gcc.gnu.org/bugzilla/>
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