2018-11-13 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr87931.c
blob9ef8610ffa67794b7b4652cfbc1b48413e4a5b86
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fno-tree-copy-prop -fgraphite-identity" } */
4 #define N 40
5 #define M 128
6 float in[N+M];
7 float coeff[M];
8 float fir_out[N];
10 void fir ()
12 int i,j,k;
13 float diff;
15 for (i = 0; i < N; i++) {
16 diff = 0;
17 for (j = 0; j < M; j++) {
18 diff += in[j+i]*coeff[j];
20 fir_out[i] = diff;