1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 
K(int * gpwgts,int * badminpwgt,int * badmaxpwgt)4 void K (int *gpwgts, int *badminpwgt, int *badmaxpwgt)
5 {
6   int i;
7   for (i = 0; i < 10; i += 2) {
8     badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i];
9     badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i];
10   }
11 }
12 
13 /* { dg-final { cleanup-tree-dump "vect" } } */
14