2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64935-2.c
blob33d963036995a2c5ce022b84a4a014fff4d2628a
1 /* PR rtl-optimization/64935 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fschedule-insns --param=max-sched-ready-insns=1 -fcompare-debug" } */
4 /* { dg-require-effective-target scheduling } */
5 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
7 void
8 foo (int *data, unsigned len, const int qlp_coeff[],
9 unsigned order, int lp, int residual[], int i)
11 int sum;
12 sum = 0;
13 sum += qlp_coeff[1] * data[i - 2];
14 sum += qlp_coeff[0] * data[i - 1];
15 residual[i] = data[i] - (sum >> lp);