libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / unroll-1.c
blob0b25c1f2f1cfb11642125998cf431a7786b04155
1 /* { dg-options "-O3 -fdump-rtl-loop2_unroll-details-blocks -funroll-loops -fno-peel-loops" } */
2 void abort ();
4 int a[1000];
5 int
6 __attribute__ ((noinline))
7 t()
9 int i;
10 for (i=0;i<1000;i++)
11 if (!a[i])
12 return 1;
13 abort ();
15 int
16 main()
18 int i;
19 for (i=0;i<1000;i++)
20 t();
21 return 0;
23 /* { dg-final-use-not-autofdo { scan-rtl-dump "considering unrolling loop with constant number of iterations" "loop2_unroll" } } */
24 /* { dg-final-use-not-autofdo { scan-rtl-dump-not "Invalid sum" "loop2_unroll" } } */