1 /* { dg-require-effective-target vect_int } */
8 int ib
[N
] = {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 for (i
= 0; i
< N
/4; i
++)
18 fa
[4*i
] = (float) ib
[4*i
];
19 fa
[4*i
+ 1] = (float) ib
[4*i
+ 1];
20 fa
[4*i
+ 2] = (float) ib
[4*i
+ 2];
21 fa
[4*i
+ 3] = (float) ib
[4*i
+ 3];
26 for (i
= 0; i
< N
/4; i
++)
28 if (fa
[4*i
] != (float) ib
[4*i
]
29 || fa
[4*i
+ 1] != (float) ib
[4*i
+ 1]
30 || fa
[4*i
+ 2] != (float) ib
[4*i
+ 2]
31 || fa
[4*i
+ 3] != (float) ib
[4*i
+ 3])
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target powerpc*-*-* i?86-*-* x86_64-*-* } } } */
46 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target powerpc*-*-* i?86-*-* x86_64-*-* } } } */