PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr81620-2.c
blob85a8e3508402a89f39903fa2456ca6047fe575e4
1 /* { dg-do run } */
2 /* { dg-options "-O3 -fno-tree-loop-vectorize -fdump-tree-pcom-details" } */
4 int a[200];
5 char b;
6 void abort (void);
8 int main() {
9 int i;
10 b = 100;
11 for (; b; b--) {
12 a[b] = 2;
13 a[b + 2] = 1;
16 if (a[0] != 0 || a[1] != 2 || a[2] != 2)
17 abort ();
18 for (i = 3; i < 103; i++)
19 if (a[i] != 1)
20 abort ();
22 return 0;
25 /* { dg-final { scan-tree-dump-times "Store-stores chain" 1 "pcom" } } */