aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/fib.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-06-14 10:11:04 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-06-14 10:11:04 +0200
commita3f91e32d5d907290d194f7c3a0596ab29b3d3fb (patch)
tree7f55a4b39758c081548d6153876679c9ad1400aa /test/c/fib.c
parent69f4580c239548082d899b3719b5de2d686252c3 (diff)
downloadcompcert-kvx-a3f91e32d5d907290d194f7c3a0596ab29b3d3fb.tar.gz
compcert-kvx-a3f91e32d5d907290d194f7c3a0596ab29b3d3fb.zip
Towards supporting the CompCert tests (not finished)
Diffstat (limited to 'test/c/fib.c')
-rw-r--r--test/c/fib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/c/fib.c b/test/c/fib.c
index e4c7d095..19548415 100644
--- a/test/c/fib.c
+++ b/test/c/fib.c
@@ -12,7 +12,11 @@ int fib(int n)
int main(int argc, char ** argv)
{
int n, r;
+#ifdef __K1C_COS__
+ if (argc >= 2) n = atoi(argv[1]); else n = 26;
+#else
if (argc >= 2) n = atoi(argv[1]); else n = 35;
+#endif
r = fib(n);
printf("fib(%d) = %d\n", n, r);
return 0;