PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr55857-1.c
blobad41d3043218bd3af7f36579c9cf876a16e5707b
1 /* { dg-do compile } */
3 void
4 foo (int *data, unsigned len, const int qlp_coeff[], int lp, int residual[])
6 int i;
7 int sum;
8 for(i = 0; i < (int)len; i++)
9 {
10 sum = 0;
11 sum += qlp_coeff[1] * data[i-2];
12 sum += qlp_coeff[0] * data[i-1];
13 residual[i] = data[i] - (sum >> lp);
17 /* { dg-final { cleanup-tree-dump "vect" } } */