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 */
26 for (i
= 0; i
< N
; i
++)
28 tmp1
.a
.n
[1][2][i
] = 5;
32 for (i
= 0; i
<N
; i
++)
34 if (tmp1
.a
.n
[1][2][i
] != 5)
39 for (i
= 3; i
< N
-1; i
++)
41 tmp1
.a
.n
[1][2][i
] = 6;
45 for (i
= 3; i
< N
-1; i
++)
47 if (tmp1
.a
.n
[1][2][i
] != 6)
52 for (i
= 0; i
< N
; i
++)
54 tmp1
.e
.n
[1][2][i
] = 7;
58 for (i
= 0; i
< N
; i
++)
60 if (tmp1
.e
.n
[1][2][i
] != 7)
65 for (i
= 3; i
< N
-3; i
++)
67 tmp1
.e
.n
[1][2][i
] = 8;
71 for (i
= 3; i
<N
-3; i
++)
73 if (tmp1
.e
.n
[1][2][i
] != 8)
87 /* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" } } */
88 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
89 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 2 "vect" } } */
90 /* { dg-final { cleanup-tree-dump "vect" } } */