aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-04-04 11:40:16 +0200
committerCyril SIX <cyril.six@kalray.eu>2018-04-04 16:30:10 +0200
commit36076263491312d634bd0d39f8de718f32462da2 (patch)
tree3cfd58bba2cccd1bd52aae00d411c3f9ee2aa1cf /test/mppa
parent69813ed0107cd76caa322db5e1df1b7b969b7012 (diff)
downloadcompcert-kvx-36076263491312d634bd0d39f8de718f32462da2.tar.gz
compcert-kvx-36076263491312d634bd0d39f8de718f32462da2.zip
MPPA - Added signed immediate comparison
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/Makefile5
-rw-r--r--test/mppa/for.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/test/mppa/Makefile b/test/mppa/Makefile
index e73dcb38..b1f25ef1 100644
--- a/test/mppa/Makefile
+++ b/test/mppa/Makefile
@@ -1,8 +1,11 @@
-ELF=simple.bin call.bin branch.bin
+ELF=simple.bin call.bin branch.bin for.bin
+ASM=$(subst .bin,.s,$(ELF))
DEBUG:=$(if $(DEBUG),"-dall",)
all: $(ELF)
+nobin: $(ASM)
+
%.bin: %.s
k1-gcc $< -o $@
diff --git a/test/mppa/for.c b/test/mppa/for.c
new file mode 100644
index 00000000..6a3a6cc8
--- /dev/null
+++ b/test/mppa/for.c
@@ -0,0 +1,9 @@
+int main(void){
+ int a = 4;
+ int i;
+
+ for (i = 0 ; i < 12 ; i++)
+ a++;
+
+ return a;
+}