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