1 /* { dg-require-effective-target vect_int } */
8 char x
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
9 char cb
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
11 __attribute__ ((noinline
))
19 for (i
= 0; i
< N
; i
++)
22 asm volatile ("" ::: "memory");
25 /* Check that datarefs analysis can determine that the access via pointer
26 s.p is based off array x, which enables us to antialias this access from
27 the access to array cb. */
29 for (i
= 0; i
< N
; i
++)
35 for (i
= 0; i
< N
; i
++)
41 /* Check that datarefs analysis can determine that the access via pointer
42 s.p is based off array x, and that the access via pointer s.q is based off
43 array cb, which enables us to antialias these two accesses. */
45 for (i
= 0; i
< N
; i
++)
51 for (i
= 0; i
< N
; i
++)
68 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
69 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */