Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / unroll-8.c
blob6cd8dacc3652b3270b6dfa7d8d8cec22f7891ed9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-vectorize -fdump-rtl-loop2_unroll-details-blocks -funroll-loops" } */
4 struct a {int a[7];};
5 int t(struct a *a, int n)
7 int i;
8 for (i=0;i<n;i++)
9 a->a[i]++;
11 /* { dg-final { scan-rtl-dump-not "Unrolled loop" "loop2_unroll" } } */
12 /* { dg-final { scan-rtl-dump "likely upper bound: 6" "loop2_unroll" } } */
13 /* { dg-final { scan-rtl-dump "realistic bound: -1" "loop2_unroll" } } */
14 /* { dg-final { scan-rtl-dump "Not unrolling loop, doesn't roll" "loop2_unroll" } } */
15 /* { dg-final { scan-rtl-dump-not "Invalid sum" "loop2_unroll" } } */
16 /* { dg-final { scan-rtl-dump-not "upper bound: -1" "loop2_unroll" } } */