[Bug rtl-optimization/19055] New: Minor bit optimization with or and xor

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Dec 17 14:16:00 GMT 2004


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



More information about the Gcc-bugs mailing list