1 /* { dg-require-effective-target vect_int } */
8 char x
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
9 char cb
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 __attribute__ ((noinline
))
20 /* Check that datarefs analysis can determine that the access via pointer
21 s.p is based off array x, which enables us to antialias this access from
22 the access to array cb. */
24 for (i
= 0; i
< N
; i
++)
30 for (i
= 0; i
< N
; i
++)
36 /* Check that datarefs analysis can determine that the access via pointer
37 s.p is based off array x, and that the access via pointer s.q is based off
38 array cb, which enables us to antialias these two accesses. */
40 for (i
= 0; i
< N
; i
++)
46 for (i
= 0; i
< N
; i
++)
63 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
64 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */