1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options bind_pic_locally } */
8 /* Compile time known misalignment. Cannot use loop peeling to align
16 } __attribute__((packed
));
18 int x
[N
] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
20 __attribute__ ((noinline
)) int
21 main1 (struct foo
* __restrict__ p
)
25 for (i
= 0; i
< N
; i
++)
32 for (i
= 0; i
< N
; i
++)
44 struct foo
*p
= malloc (2*sizeof (struct foo
));
51 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { target { vect_hw_misalign && { arm_vect_no_misalign } } } } } */
52 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { vect_hw_misalign && arm_vect_no_misalign } } } } */
53 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */