[Bug tree-optimization/32681] ice for legal C code with flags -ffast-math -O3 -ftree-vectorize

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 9 10:15:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list