1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options double_vectors } */
9 int ib[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) =
10 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 short sb[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) =
12 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
13 char cb[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) =
14 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
16 __attribute__ ((noinline))
17 int main1 (int n, int * __restrict__ pib,
18 short * __restrict__ psb,
19 char * __restrict__ pcb)
26 /* Multiple types with different sizes, used in independent
27 computations. Vectorizable. The loads are misaligned. */
28 for (i = 0; i < n; i++)
36 for (i = 0; i < n; i++)
51 main1 (N, ib, sb, cb);
52 main1 (N-3, ib, sb, &cb[2]);
56 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
57 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 3 "vect" { target vect_no_align } } } */
58 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 3 "vect" {xfail { vect_no_align } } } } */
59 /* { dg-final { cleanup-tree-dump "vect" } } */