aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-06-06 17:30:28 +0200
committerCyril SIX <cyril.six@kalray.eu>2018-06-06 17:30:28 +0200
commit408ae8c4451b49277e8b97bbb7cedd2fb905bcdb (patch)
tree4a6d88c88ddcd127f820df8dbcc62a2e7becffdd /test/mppa
parent7b5eb7e675ee0978e1b17b75f827dcd45df8c250 (diff)
downloadcompcert-kvx-408ae8c4451b49277e8b97bbb7cedd2fb905bcdb.tar.gz
compcert-kvx-408ae8c4451b49277e8b97bbb7cedd2fb905bcdb.zip
MPPA - Forgot to initialize variables in the tests
Warning : the division and modulo currently do not pass the tests
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/Makefile3
-rw-r--r--test/mppa/general/framework.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/test/mppa/Makefile b/test/mppa/Makefile
index 05223658..fddaad37 100644
--- a/test/mppa/Makefile
+++ b/test/mppa/Makefile
@@ -1,8 +1,7 @@
DIR=general
BINDIR=bin
ASMDIR=asm
-#TESTNAMES=$(notdir $(subst .c,,$(wildcard $(DIR)/*.c)))
-TESTNAMES=branch
+TESTNAMES=$(notdir $(subst .c,,$(wildcard $(DIR)/*.c)))
CCOMP=../../ccomp
#TESTS=$(addprefix $(DIR)/,$(TESTNAMES))
diff --git a/test/mppa/general/framework.h b/test/mppa/general/framework.h
index 8321a9a9..78f2617e 100644
--- a/test/mppa/general/framework.h
+++ b/test/mppa/general/framework.h
@@ -7,7 +7,9 @@
int main(void){\
type a, b, c, i, S;\
srand(0);\
+ S = 0;\
for (i = 0 ; i < 100 ; i++){\
+ c = randlong();\
a = randlong();\
b = randlong();
/* END BEGIN_TEST */