aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/mppa/mmult/Makefile7
-rw-r--r--test/mppa/mmult/mmult.c2
-rw-r--r--test/mppa/sort/Makefile3
3 files changed, 7 insertions, 5 deletions
diff --git a/test/mppa/mmult/Makefile b/test/mppa/mmult/Makefile
index edea61ae..3297dfe4 100644
--- a/test/mppa/mmult/Makefile
+++ b/test/mppa/mmult/Makefile
@@ -1,4 +1,5 @@
PRNG=../lib/prng.c
+CCOMP=../../../ccomp
ALL= mmult-test-x86 mmult-test-k1c\
@@ -16,11 +17,11 @@ test-x86: mmult.c $(PRNG)
test-k1c: mmult.c $(PRNG)
k1-gcc -g -O2 -std=c99 $^ -o $@
-%.s: %.c
- ccomp -O2 -S $< -o $@
+%.s: %.c $(CCOMP)
+ ccomp -O0 -g -S $< -o $@
test-ccomp: mmult.s $(subst .c,.s,$(PRNG))
- k1-gcc $^ -o $@
+ k1-gcc $^ -g -o $@
.PHONY:
unittest: unittest-x86 unittest-k1c
diff --git a/test/mppa/mmult/mmult.c b/test/mppa/mmult/mmult.c
index dcbcfe17..b674ca80 100644
--- a/test/mppa/mmult/mmult.c
+++ b/test/mppa/mmult/mmult.c
@@ -4,7 +4,7 @@
#define __UNIT_TEST_MMULT__
#ifdef __UNIT_TEST_MMULT__
-#define SIZE 50
+#define SIZE 10
#else
#include "test.h"
#endif
diff --git a/test/mppa/sort/Makefile b/test/mppa/sort/Makefile
index 4a118875..f94fe6b8 100644
--- a/test/mppa/sort/Makefile
+++ b/test/mppa/sort/Makefile
@@ -1,4 +1,5 @@
PRNG=../lib/prng.c
+CCOMP=../../../ccomp
ALL= insertion-test-x86 insertion-test-k1c\
selection-test-x86 selection-test-k1c\
@@ -20,7 +21,7 @@ test-x86: selection.c merge.c insertion.c test.c $(PRNG)
test-k1c: selection.c merge.c insertion.c test.c $(PRNG)
k1-gcc -g -O2 -std=c99 $^ -o $@
-%.s: %.c
+%.s: %.c $(CCOMP)
ccomp -O2 -S $< -o $@
test-ccomp: selection.s merge.s insertion.s test.s $(subst .c,.s,$(PRNG))