PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-profile-1.c
blob93d7ad13147534f7dc95db763a487e326619fed6
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-fdump-tree-vect-details-blocks" } */
5 /* At least one of these should correspond to a full vector. */
7 void
8 f1 (int *x)
10 for (int j = 0; j < 2; ++j)
11 x[j] += 1;
14 void
15 f2 (int *x)
17 for (int j = 0; j < 4; ++j)
18 x[j] += 1;
21 void
22 f3 (int *x)
24 for (int j = 0; j < 8; ++j)
25 x[j] += 1;
28 void
29 f4 (int *x)
31 for (int j = 0; j < 16; ++j)
32 x[j] += 1;
35 /* { dg-final { scan-tree-dump {goto <bb [0-9]+>; \[0+.0*%\]} vect } } */