aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c
new file mode 100644
index 000000000..541bd42ad
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr37742-3.c
@@ -0,0 +1,17 @@
+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;
+ }
+}
+