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

--- Comment #2 from ktkachov at gcc dot gnu.org ---
Smaller testcase for -Ofast -floop-interchange on aarch64:
int a, b, c, e, f, g;
int d[1];
static int *h = &c;
long i;

int
fn1 (short p1)
{
  return p1 + a;
}

void
fn2 ()
{
  for (; f; f++)
    {
      int *j = &g;
      e = 1;
      for (; e; e++)
        {
          i = b ?: b;
          *j ^= fn1 (d[e]);
          if (*h)
            break;
        }
    }
}

Reply via email to