1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options quad_vectors } */
13 __attribute__ ((noinline
))
19 /* The store is aligned and the loads are misaligned with the same
20 misalignment. Cost model is disabled. If misaligned stores are supported,
21 we peel according to the loads to align them. */
22 for (i
= 0; i
<= N
; i
++)
24 ia
[i
] = ib
[i
+2] + ib
[i
+6];
28 for (i
= 1; i
<= N
; i
++)
30 if (ia
[i
] != ib
[i
+2] + ib
[i
+6])
43 for (i
= 0; i
<= N
+6; i
++)
45 asm volatile ("" : "+r" (i
));
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
53 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { target vect_element_align } } } */
54 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target vect_element_align } } } */
55 /* { dg-final { cleanup-tree-dump "vect" } } */