aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c
blob: 9e7b10fb7a33f99a2e97c7988f0ddf96ec519476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */

void matmul_i4 (int * __restrict dest_y,
		const int * __restrict abase,
		const int * __restrict bbase_y,
		int count, int xcount, int ycount, int aystride)
{               
  int x, y, n;
  const int * __restrict abase_n;
  int bbase_yn;
  for (y = 0; y < ycount; y++)
    for (n = 0; n < count; n++) {
	abase_n = abase + n*aystride;
	bbase_yn = bbase_y[n];
	for (x = 0; x < xcount; x++)
	  dest_y[x] += abase_n[x] * bbase_yn; 
    }
}