1 /* { dg-do compile } */
4 f (int *restrict y
, int *restrict x
, int *restrict indices
, int *restrict cond
, int n
)
6 for (int i
= 0; i
< n
; ++i
)
9 y
[i
* 2] = x
[indices
[i
* 2]] + 1;
11 y
[i
* 2 + 1] = x
[indices
[i
* 2 + 1]] + 2;
15 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" vect { target vect_gather_load_ifn } } } */