aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr/individual/indirect_call.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2020-05-28 18:26:22 +0200
committerCyril SIX <cyril.six@kalray.eu>2020-05-28 18:26:22 +0200
commit050f408dd2b3f2cf1b8db512edafe2701b7a2dce (patch)
tree5f962fb6166fd2cd95a239e0d66fee362c1bfb23 /test/mppa/instr/individual/indirect_call.c
parentd46e96ef6c0287d6892bfc7d2272b7473f5e4979 (diff)
parent17c564cb99076eb0e2b34eeed4f24a18febe7116 (diff)
downloadcompcert-kvx-050f408dd2b3f2cf1b8db512edafe2701b7a2dce.tar.gz
compcert-kvx-050f408dd2b3f2cf1b8db512edafe2701b7a2dce.zip
Merge branch 'kvx-work' into mppa-RTLpathSE
Adapting the new mppa-RTLpathSE passes into the new Compiler.vexpand framework
Diffstat (limited to 'test/mppa/instr/individual/indirect_call.c')
-rw-r--r--test/mppa/instr/individual/indirect_call.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/mppa/instr/individual/indirect_call.c b/test/mppa/instr/individual/indirect_call.c
deleted file mode 100644
index f376c00a..00000000
--- a/test/mppa/instr/individual/indirect_call.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "framework.h"
-
-long long sum(long long a, long long b){
- return a+b;
-}
-
-long long diff(long long a, long long b){
- return a-b;
-}
-
-long long mul(long long a, long long b){
- return a*b;
-}
-
-long long make(long long a){
- return a;
-}
-
-BEGIN_TEST(long long)
-{
- long long d = 3;
- long long (*op)(long long, long long);
-
- if (a % d == 0)
- op = sum;
- else if (a % d == 1)
- op = diff;
- else
- op = mul;
-
- c += op(make(a), make(b));
-}
-END_TEST64()