2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / unroll_1.c
blobb1d3e7c69263761fd93d70ddde9406f6815233ef
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-loop2_unroll=stderr -fno-peel-loops -fno-tree-vrp -fdisable-tree-cunroll -fdisable-tree-cunrolli -fenable-rtl-loop2 -fenable-rtl-loop2_unroll" } */
4 unsigned a[100], b[100];
5 inline void bar()
7 a[10] = b[10];
10 int foo(void)
12 int i;
13 bar();
14 for (i = 0; i < 2; i++) /* { dg-message "note: loop turned into non-loop; it never loops" } */
16 a[i]= b[i] + 1;
18 return 1;
21 int foo2(void)
23 int i;
24 for (i = 0; i < 2; i++) /* { dg-message "note: loop turned into non-loop; it never loops" } */
26 a[i]= b[i] + 1;
28 return 1;
30 /* { dg-prune-output ".*" } */