1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0 -fdump-tree-optimized-details-blocks" } */
3 /* { dg-require-effective-target vect_int } */
4 /* { dg-add-options bind_pic_locally } */
17 __attribute__ ((noinline
))
22 for (i
= 0; i
< N
+OFF
; i
++)
27 for (i
= 0; i
< N
; i
++)
34 for (i
= 0; i
< N
; i
++)
36 if (ia
[i
] != ib
[i
+off
])
47 main1 (0); /* aligned */
48 main1 (OFF
); /* unaligned */
52 /* For targets that don't support misaligned loads we version for the load.
53 (The store is aligned). */
55 /* The initialization induction loop (with aligned access) is also vectorized. */
56 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
57 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail { ! vect_unaligned_possible } } } } */
58 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */
59 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning." 1 "vect" {target { vect_no_align && { ! vect_hw_misalign } } } } } */
60 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */