Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pr89278.c
2023-03-06 14:48:14 +01:00

23 lines
395 B
C

/* PR tree-optimization/89278 */
/* { dg-do compile } */
/* { dg-options "-O1 -ftrapv -ftree-loop-distribute-patterns --param max-loop-header-insns=2" } */
void
foo (int *w, int x, int y, int z)
{
while (x < y + z)
{
w[x] = 0;
++x;
}
}
void
bar (int *__restrict u, int *__restrict w, int x, int y, int z)
{
while (x < y + z)
{
w[x] = u[x];
++x;
}
}