1 /* { dg-require-effective-target vect_int } */
8 __attribute__ ((noinline
))
12 int ia
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48};
13 int ib
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48};
14 int res
[N
] = {12,24,36,48,60,72,84,96,108,120,132,144,156,168,180,192,48};
16 /* Not vectorizable due to data dependence: dependence distance 1. */
17 for (i
= 0; i
< N
- 1; i
++)
23 for (i
= 0; i
< N
- 1; i
++)
29 /* Vectorizable. Dependence distance -1. */
30 for (i
= 0; i
< N
- 1; i
++)
36 for (i
= 0; i
< N
- 1; i
++)
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
53 /* { dg-final { scan-tree-dump-times "dependence distance >= VF or negative" 1 "vect" } } */
54 /* { dg-final { cleanup-tree-dump "vect" } } */