1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options quad_vectors } */
11 __attribute__ ((noinline
))
17 /* All the accesses are misaligned. With cost model disabled, we count the
18 the number of aligned accesses for each peeling option, and in this case
19 we align the two loads if possible (i.e., if misaligned stores are
21 for (i
= 1; i
<= N
; i
++)
23 ia
[i
] = ib
[i
+2] + ib
[i
+6];
27 for (i
= 1; i
<= N
; i
++)
29 if (ia
[i
] != ib
[i
+2] + ib
[i
+6])
42 for (i
= 0; i
<= N
+6; i
++)
48 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_align } } } */
49 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { target vect_element_align } } } */
50 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 2 "vect" { xfail { vect_no_align || vect_element_align } } } } */
51 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail vect_no_align } } } */
52 /* { dg-final { cleanup-tree-dump "vect" } } */