comparison gcc/testsuite/gcc.dg/pr89278.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
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 }