summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr64935-2.c
blob: 5d7a6b8c6c5461b8308335f700c14100ae1f66ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR rtl-optimization/64935 */
/* { dg-do compile } */
/* { dg-options "-O -fschedule-insns --param=max-sched-ready-insns=1 -fcompare-debug" } */
/* { dg-require-effective-target scheduling } */

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