From 36076263491312d634bd0d39f8de718f32462da2 Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Wed, 4 Apr 2018 11:40:16 +0200 Subject: MPPA - Added signed immediate comparison --- test/mppa/Makefile | 5 ++++- test/mppa/for.c | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/mppa/for.c (limited to 'test/mppa') 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; +} -- cgit