1 /* { dg-require-effective-target vect_int } */
8 int ib[N] __attribute__ ((__aligned__(16))) =
9 {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};
10 short sb[N] __attribute__ ((__aligned__(16))) =
11 {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};
12 char cb[N] __attribute__ ((__aligned__(16))) =
13 {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};
15 __attribute__ ((noinline))
16 int main1 (int n, int * __restrict__ pib,
17 short * __restrict__ psb,
18 char * __restrict__ pcb)
25 /* Multiple types with different sizes, used in independent
26 computations. Vectorizable. The loads are misaligned. */
27 for (i = 0; i < n; i++)
35 for (i = 0; i < n; i++)
50 main1 (N, ib, sb, cb);
51 main1 (N-3, ib, sb, &cb[2]);
55 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
56 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 3 "vect" { target vect_no_align } } } */
57 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 3 "vect" {xfail vect_no_align } } } */
58 /* { dg-final { cleanup-tree-dump "vect" } } */