Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr89278.c
blob609cb1a53a9995353dbd816860d002aa956e8c9f
1 /* PR tree-optimization/89278 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -ftrapv -ftree-loop-distribute-patterns --param max-loop-header-insns=2" } */
5 void
6 foo (int *w, int x, int y, int z)
8 while (x < y + z)
10 w[x] = 0;
11 ++x;
15 void
16 bar (int *__restrict u, int *__restrict w, int x, int y, int z)
18 while (x < y + z)
20 w[x] = u[x];
21 ++x;