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

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-reduction,            |
                   |needs-source                |

--- Comment #19 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
reproducer:

---
#define N 512
#define START 1
#define END 505

int x[N] __attribute__((aligned(32)));

int __attribute__((noipa, noclone))
foo (void)
{
  unsigned int v = 0;
  for (unsigned int i = START; i < END; ++i)
    {
      if (x[i] == 0)
        return i;
      x[i] = v;
      v += 5;
    }
  return -1;
}

int __attribute__ ((optimize (1)))
main (void)
{
  int res = foo ();
  asm volatile ("");
  if (res != START)
    __builtin_abort ();
  return 0;
}

---
compiled with -march=armv8-a+sve -O3 -msve-vector-bits=256 --param
aarch64-autovec-preference=sve-only

Finishing regression runs and will post patch.

Reply via email to