This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/19055] New: Minor bit optimization with or and xor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2004 14:16:08 -0000
- Subject: [Bug rtl-optimization/19055] New: Minor bit optimization with or and xor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following two functions should produce the same assembly
int f(int a)
{
a|=1;
a^=1;
return a;
}
int f1(int a)
{
return a&~1;
}
--
Summary: Minor bit optimization with or and xor
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19055