1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-vectorize -fdump-rtl-loop2_unroll-details-blocks -funroll-loops" } */
5 int t(struct a
*a
, int n
)
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" } } */