| 1 |
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ |
| 2 |
|
| 3 |
void matmul_i4 (int * __restrict dest_y, |
| 4 |
const int * __restrict abase, |
| 5 |
const int * __restrict bbase_y, |
| 6 |
int count, int xcount, int ycount, int aystride) |
| 7 |
{ |
| 8 |
int x, y, n; |
| 9 |
const int * __restrict abase_n; |
| 10 |
int bbase_yn; |
| 11 |
for (y = 0; y < ycount; y++) |
| 12 |
for (n = 0; n < count; n++) { |
| 13 |
abase_n = abase + n*aystride; |
| 14 |
bbase_yn = bbase_y[n]; |
| 15 |
for (x = 0; x < xcount; x++) |
| 16 |
dest_y[x] += abase_n[x] * bbase_yn; |
| 17 |
} |
| 18 |
} |
| 19 |
|