1 /* { dg-require-effective-target vect_int } */
14 struct s a
; /* array a.n is unaligned */
17 struct s e
; /* array e.n is aligned */
22 __attribute__ ((noinline
))
28 for (i
= 0; i
< N
; i
++)
30 tmp1
.a
.n
[1][2][i
] = 5;
34 for (i
= 0; i
<N
; i
++)
36 if (tmp1
.a
.n
[1][2][i
] != 5)
41 for (i
= 3; i
< N
-1; i
++)
43 tmp1
.a
.n
[1][2][i
] = 6;
47 for (i
= 3; i
< N
-1; i
++)
49 if (tmp1
.a
.n
[1][2][i
] != 6)
54 for (i
= 0; i
< N
; i
++)
56 tmp1
.e
.n
[1][2][i
] = 7;
60 for (i
= 0; i
< N
; i
++)
62 if (tmp1
.e
.n
[1][2][i
] != 7)
67 for (i
= 3; i
< N
-3; i
++)
69 tmp1
.e
.n
[1][2][i
] = 8;
73 for (i
= 3; i
<N
-3; i
++)
75 if (tmp1
.e
.n
[1][2][i
] != 8)
89 /* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" } } */
90 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
91 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 2 "vect" } } */
92 /* { dg-final { cleanup-tree-dump "vect" } } */