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 tree-optimization/15784] fold misses binary optimization


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-02 22:39 -------
int f(int x, int y)
{
  return x - y - x; // -y
}

#define abs(x) x>0?x:-x
int f(int x, int y)
{
  return (abs(x)) >= 0; //1
}

-- 


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


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