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__
)));
12 __attribute__ ((noinline
))
20 for (i
= 0; i
< N
; i
++)
23 asm volatile ("" ::: "memory");
26 /* Check that datarefs analysis can determine that the access via pointer
27 s.p is based off array x, which enables us to antialias this access from
28 the access to array cb. */
30 for (i
= 0; i
< N
; i
++)
37 for (i
= 0; i
< N
; i
++)
43 /* Check that datarefs analysis can determine that the access via pointer
44 s.p is based off array x, and that the access via pointer s.q is based off
45 array cb, which enables us to antialias these two accesses. */
47 for (i
= 0; i
< N
; i
++)
54 for (i
= 0; i
< N
; i
++)
71 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
72 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
73 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */