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