aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/interop/stackhell.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-11-28 12:09:41 +0100
committerCyril SIX <cyril.six@kalray.eu>2018-11-28 12:09:41 +0100
commit5a26a29335042b2b7d841f04d74de3151ca8cc8d (patch)
treeec484477f8ec97841d001093874a8a7586a54fd5 /test/mppa/interop/stackhell.c
parent309db6bc63539f2ba10c0cd4088ef3ac2e237551 (diff)
downloadcompcert-kvx-5a26a29335042b2b7d841f04d74de3151ca8cc8d.tar.gz
compcert-kvx-5a26a29335042b2b7d841f04d74de3151ca8cc8d.zip
Added GCC-compcert call test with a very high register pressure
Diffstat (limited to 'test/mppa/interop/stackhell.c')
-rw-r--r--test/mppa/interop/stackhell.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mppa/interop/stackhell.c b/test/mppa/interop/stackhell.c
new file mode 100644
index 00000000..fbe7d56b
--- /dev/null
+++ b/test/mppa/interop/stackhell.c
@@ -0,0 +1,8 @@
+#include "framework.h"
+#include "common.h"
+
+BEGIN_TEST(long long)
+ c = stackhell(a, b, a-b, a+b, a*2, b*2, a*2-b, a+b*2, (a-b)*2, (a+b)*2,
+ -2*a, -2*b, a-b, a+b, a*3, b*3, a*3-b, a+b*3, (a-b)*3, (a+b)*3,
+ -3*a, -3*b, a-b, a+b, a*4, b*4, a*4-b, a+b*4, (a-b)*4, (a+b)*4);
+END_TEST()