1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options bind_pic_locally } */
15 __attribute__ ((noinline
))
20 for (i
= 0; i
< N
+OFF
; i
++)
25 for (i
= 0; i
< N
; i
++)
31 for (i
= 0; i
< N
; i
++)
33 if (ia
[i
] != ib
[i
+off
])
44 main1 (0); /* aligned */
45 main1 (OFF
); /* unaligned */
49 /* For targets that don't support misaligned loads we version for the load.
50 (The store is aligned). */
52 /* The initialization induction loop (with aligned access) is also vectorized. */
53 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
54 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail { ! vect_unaligned_possible } } } } */
55 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */
56 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning." 1 "vect" {target { vect_no_align && { ! vect_hw_misalign } } } } } */