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/32681] ice for legal C code with flags -ffast-math -O3 -ftree-vectorize



------- Comment #4 from ubizjak at gmail dot com  2007-07-09 10:15 -------
(In reply to comment #3)

> where first_edge->aux is NULL.

Looking into it.

Reduced testcase is:

--cut here--
int aa_renderpalette (int p)
{
  int y = 42;
  int i;

  for (i = 0; i < 256; i++)
    {
      if (y > 255)
        y = 255;
      if (y < 0)
        y = 0;

      if (p)
        y = (y < p ? 0 : (y > p) * 255 / (255 - 2 * p));
    }
    return y;
}
--cut here--


-- 


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


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