1 /* { dg-require-effective-target vect_int } */
18 __attribute__ ((noinline
)) int
24 for (i
= 0; i
< N
; i
++)
27 if (y
) /* Avoid vectorization. */
31 for (i
= 0; i
< N
; i
++)
33 out
[i
].a
= (int) in
[i
*3] + 1;
34 out
[i
].b
= (int) in
[i
*3 + 1] + 2;
35 out
[i
].c
= (int) in
[i
*3 + 2] + 3;
39 for (i
= 0; i
< N
; i
++)
41 if (out
[i
].a
!= (int) in
[i
*3] + 1
42 || out
[i
].b
!= (int) in
[i
*3 + 1] + 2
43 || out
[i
].c
!= (int) in
[i
*3 + 2] + 3)
59 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */
60 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_unpack } } } */
61 /* { dg-final { cleanup-tree-dump "vect" } } */