1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
9 char x
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
10 char cb
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
))) = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
12 __attribute__ ((noinline
))
21 /* Check that datarefs analysis can determine that the access via pointer
22 s.p is based off array x, which enables us to antialias this access from
23 the access to array cb. */
25 for (i
= 0; i
< N
; i
++)
32 for (i
= 0; i
< N
; i
++)
38 /* Check that datarefs analysis can determine that the access via pointer
39 s.p is based off array x, and that the access via pointer s.q is based off
40 array cb, which enables us to antialias these two accesses. */
42 for (i
= 0; i
< N
; i
++)
49 for (i
= 0; i
< N
; i
++)
66 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
67 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
68 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */