aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-01-17 14:39:59 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-01-17 14:39:59 +0100
commit576dac0317ae5e9930fb2cdfbaa36efce28d17e2 (patch)
treee53b6f53446730e49cdb1db6555b7a6889799234 /test/mppa
parent1848a8f4c08ef55a045d4dc1e78f517182a50442 (diff)
downloadcompcert-kvx-576dac0317ae5e9930fb2cdfbaa36efce28d17e2.tar.gz
compcert-kvx-576dac0317ae5e9930fb2cdfbaa36efce28d17e2.zip
Fixed the forvar test
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/instr/forvar.c6
-rw-r--r--test/mppa/instr/framework.h10
2 files changed, 13 insertions, 3 deletions
diff --git a/test/mppa/instr/forvar.c b/test/mppa/instr/forvar.c
index 57548274..9e43c198 100644
--- a/test/mppa/instr/forvar.c
+++ b/test/mppa/instr/forvar.c
@@ -2,8 +2,8 @@
BEGIN_TEST(int)
{
- int j;
- for (j = 0 ; j < (b & 0x8) ; j++)
+ int k;
+ for (k = 0 ; k < (b & 0x8) ; k++)
c += a;
}
-END_TEST()
+END_TEST32()
diff --git a/test/mppa/instr/framework.h b/test/mppa/instr/framework.h
index f43ec616..d1c652bd 100644
--- a/test/mppa/instr/framework.h
+++ b/test/mppa/instr/framework.h
@@ -37,4 +37,14 @@ int printf(const char *, ...);
}
/* END END_TEST */
+#define END_TEST32()\
+ printf("%u\n", c);\
+ S += c;\
+ }\
+ return S;\
+ }
+ /* END END_TEST32 */
+
#endif
+
+