1 /* { dg-require-effective-target vect_int } */
8 int ia
[N
] = {48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3,0};
9 int ib
[N
] = {48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3,0};
10 int res
[N
] = {48,192,180,168,156,144,132,120,108,96,84,72,60,48,36,24,12};
12 __attribute__ ((noinline
))
17 /* Not vectorizable due to data dependence: dependence distance 1. */
18 for (i
= N
- 2; i
>= 0; i
--)
24 for (i
= 0; i
< N
; i
++)
30 /* Vectorizable. Dependence distance -1. */
31 for (i
= N
- 2; i
>= 0; i
--)
37 for (i
= 0; i
< N
; i
++)
53 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {xfail { vect_no_align && { ! vect_hw_misalign } } } } } */
54 /* Requires reverse for variable-length SVE, which is implemented for
55 by a later patch. Until then we report it twice, once for SVE and
56 once for 128-bit Advanced SIMD. */
57 /* { dg-final { scan-tree-dump-times "dependence distance negative" 1 "vect" { xfail { aarch64_sve && vect_variable_length } } } } */