2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / O3-pr36098.c
blob8e41717082cf3017995630c4b64969c5686e597a
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 typedef struct {
5 int iatom[3];
6 int blocknr;
7 } t_sortblock;
9 #define DIM 3
11 void foo (int ncons, t_sortblock *sb, int *iatom)
13 int i, m;
15 for(i=0; (i<ncons); i++,iatom+=3)
16 for(m=0; (m<DIM); m++)
17 iatom[m]=sb[i].iatom[m];
20 /* The testcase was originally added for correctness reasons but now we
21 can vectorize it correctly if the target supports the permutations
22 required. */
24 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { ! vect_perm } } } } */