]>
Commit | Line | Data |
---|---|---|
bb5b1f5e | 1 | /* { dg-do compile } */ |
f8934be7 | 2 | /* { dg-options "-O2 -fdump-tree-cunrolli-details=stderr -fno-peel-loops -fno-tree-vrp -fdisable-tree-cunroll -fenable-tree-cunrolli" } */ |
bb5b1f5e XDL |
3 | |
4 | unsigned a[100], b[100]; | |
5 | inline void bar() | |
6 | { | |
7 | a[10] = b[10]; | |
8 | } | |
9 | ||
10 | int foo(void) | |
11 | { | |
12 | int i; | |
13 | bar(); | |
f8934be7 | 14 | for (i = 0; i < 2; i++) /* { dg-message "note: loop with 3 iterations completely unrolled" } */ |
bb5b1f5e XDL |
15 | { |
16 | a[i]= b[i] + 1; | |
17 | } | |
18 | return 1; | |
19 | } | |
20 | ||
21 | int foo2(void) | |
22 | { | |
23 | int i; | |
f8934be7 | 24 | for (i = 0; i < 2; i++) /* { dg-message "note: loop with 3 iterations completely unrolled" } */ |
bb5b1f5e XDL |
25 | { |
26 | a[i]= b[i] + 1; | |
27 | } | |
28 | return 1; | |
29 | } | |
71191083 | 30 | /* { dg-prune-output ".*" } */ |