aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/Makefile2
-rw-r--r--test/mppa/forvarl.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/test/mppa/Makefile b/test/mppa/Makefile
index be8eaab2..07224dc8 100644
--- a/test/mppa/Makefile
+++ b/test/mppa/Makefile
@@ -1,4 +1,4 @@
-TESTS=simple call branch for forvar
+TESTS=simple call branch for forvar forvarl
ELF=$(addsuffix .bin,$(TESTS))
ASM=$(addsuffix .s,$(TESTS))
diff --git a/test/mppa/forvarl.c b/test/mppa/forvarl.c
new file mode 100644
index 00000000..90de7411
--- /dev/null
+++ b/test/mppa/forvarl.c
@@ -0,0 +1,11 @@
+int main(void)
+{
+ long long int a = 42;
+ long long int b = 84;
+ long long int i;
+
+ for (i = 0 ; i < a ; i++)
+ b++;
+
+ return 0;
+}