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 rtl-optimization/19055] Minor bit optimization with or and xor


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-17 14:25 -------
Another example where we don't get the optimization and f1 is still one instruction (on 32bit PPC):
int f(int a,int b)
{
  a|=b;
  a^=b;
  return a;
}

int f1(int a,int b)
{
  return a&=~b;
}

-- 


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


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