aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr55857-1.c
blob: ad41d3043218bd3af7f36579c9cf876a16e5707b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */

void 
foo (int *data, unsigned len, const int qlp_coeff[], int lp, int residual[])
{
  int i;
  int sum;
  for(i = 0; i < (int)len; i++)
    {     
      sum = 0;   
      sum += qlp_coeff[1] * data[i-2];   
      sum += qlp_coeff[0] * data[i-1];   
      residual[i] = data[i] - (sum >> lp);
    }    
}

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