https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91665

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
int val[1024];
void
foo (int n)
{
  int i;
  for (int j = 0, i = n; j < 1024; ++j, i=(unsigned)i+1)
    val[j] = i;
}

generates signed add for the induction vectorization.

Reply via email to