[Bug tree-optimization/22236] [4.1 Regression] wrong code for casts and scev

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 29 20:59:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-29 20:59 -------
Here is a testcase which will fail even after the patch for 14490:
void abort(void);

static inline void
foo (signed char a)
{
  int b = a - 0x7F;
  if (b > 1)
    abort();
}

int main()
{
  unsigned char b;
  for(b = 0;b <0xFF;b++)
   foo (b);
}

-- 


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



More information about the Gcc-bugs mailing list