public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/19055] New: Minor bit optimization with or and xor
@ 2004-12-17 14:16 pinskia at gcc dot gnu dot org
  2004-12-17 14:23 ` [Bug rtl-optimization/19055] " segher at kernel dot crashing dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 14:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-21 19:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 14:16 [Bug rtl-optimization/19055] New: Minor bit optimization with or and xor pinskia at gcc dot gnu dot org
2004-12-17 14:23 ` [Bug rtl-optimization/19055] " segher at kernel dot crashing dot org
2004-12-17 14:26 ` pinskia at gcc dot gnu dot org
2004-12-19 14:02 ` pinskia at gcc dot gnu dot org
2004-12-22  7:42 ` pinskia at gcc dot gnu dot org
2005-02-22 19:02 ` [Bug tree-optimization/19055] " pinskia at gcc dot gnu dot org
2005-07-05  0:02 ` pinskia at gcc dot gnu dot org
2005-07-05 13:53 ` pinskia at gcc dot gnu dot org
2005-07-21 19:34 ` cvs-commit at gcc dot gnu dot org
2005-07-21 19:34 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).