1 /* { dg-require-effective-target vect_int } */
13 struct foostr a
[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
))) =
33 struct foostr b
[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
))) =
52 struct foostr c
[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
53 struct foostr res
[N
] =
73 __attribute__ ((noinline
)) void
78 for (i
= 0; i
< N
; i
++)
80 c
[i
].f1
= a
[i
].f1
+ b
[i
].f1
;
81 c
[i
].f2
= a
[i
].f2
+ b
[i
].f2
;
95 for (i
= 0; i
< N
; i
++)
97 if (c
[i
].f1
!= res
[i
].f1
)
99 if (c
[i
].f2
!= res
[i
].f2
)
106 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
107 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */
108 /* { dg-final { cleanup-tree-dump "vect" } } */