summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr41956.c
blob: 455f50510079e855c1ff8eb4928279cde8b3726a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

void K (int *gpwgts, int *badminpwgt, int *badmaxpwgt)
{
  int i;
  for (i = 0; i < 10; i += 2) {
    badminpwgt[i] = badminpwgt[i+1] = gpwgts[i]+gpwgts[i];
    badmaxpwgt[i] = badmaxpwgt[i+1] = gpwgts[i]+gpwgts[i];
  }
}

/* { dg-final { cleanup-tree-dump "vect" } } */