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 int main1 (int n, int * __restrict__ pib,
16 short * __restrict__ psb,
17 char * __restrict__ pcb)
24 /* Multiple types with different sizes, used in independent
25 computations. Vectorizable. The loads are misaligned. */
26 for (i = 0; i < n; i++)
34 for (i = 0; i < n; i++)
49 main1 (N, ib, sb, cb);
50 main1 (N-3, ib, sb, &cb[2]);
54 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
55 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 3 "vect" { target vect_no_align } } } */
56 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 3 "vect" {xfail vect_no_align } } } */
57 /* { dg-final { cleanup-tree-dump "vect" } } */