1 /* { dg-require-effective-target vect_int } */
14 struct s a
; /* array a.n is unaligned */
17 struct s e
[N
]; /* array e.n is aligned */
20 __attribute__ ((noinline
))
26 for (i
= 0; i
< N
; i
++)
27 for (j
= 3; j
< N
-3; j
++)
29 tmp1
.e
[i
].n
[1][2][j
] = 8;
33 for (i
= 0; i
< N
; i
++)
34 for (j
= 3; j
< N
-3; j
++)
36 if (tmp1
.e
[i
].n
[1][2][j
] != 8)
41 for (i
= 0; i
< N
; i
++)
42 for (j
= 3; j
< N
-3; j
++)
44 tmp1
.e
[j
].n
[1][2][j
] = 8;
48 for (i
= 0; i
< N
; i
++)
49 for (j
= 3; j
< N
-3; j
++)
51 if (tmp1
.e
[j
].n
[1][2][j
] != 8)
65 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
66 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
67 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" {target { vector_alignment_reachable} } } } */
68 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" {target {{! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */
69 /* { dg-final { cleanup-tree-dump "vect" } } */