1 /* { dg-require-effective-target vect_int } */
8 __attribute__ ((noinline
)) int main1 (int X
)
15 /* Vectorization of induction with non-constant initial condition X.
16 Also we have here two uses of the induction-variable k as defined
17 by the loop-header phi (as opposed to the other uses of k that are
18 defined in the loop), in which case we exercise the fact that we
19 reuse the same vector def-use-cycle for both uses.
20 Peeling to align the store is also applied. This peeling also aligns
21 the load (as they have the same misalignment). */
32 for (i
= 0; i
< N
; i
++)
34 if (arr1
[i
+1] != X
+6*i
+2
35 || arr2
[i
+1] != 2*(X
+6*i
))
49 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
50 /* { dg-final { cleanup-tree-dump "vect" } } */