Debian Codegraph @

gcc/testsuite/gcc.dg/pr89278.c

raw
1 /* PR tree-optimization/89278 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -ftrapv -ftree-loop-distribute-patterns --param max-loop-header-insns=2" } */
4
5 void
6 foo (int *w, int x, int y, int z)
7 {
8 while (x < y + z)
9 {
10 w[x] = 0;
11 ++x;
12 }
13 }
14
15 void
16 bar (int *__restrict u, int *__restrict w, int x, int y, int z)
17 {
18 while (x < y + z)
19 {
20 w[x] = u[x];
21 ++x;
22 }
23 }