diff options
Diffstat (limited to 'test/ExecutionEngine/OrcLazy')
-rw-r--r-- | test/ExecutionEngine/OrcLazy/lit.local.cfg | 2 | ||||
-rw-r--r-- | test/ExecutionEngine/OrcLazy/trivial_retval_1.ll | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/ExecutionEngine/OrcLazy/lit.local.cfg b/test/ExecutionEngine/OrcLazy/lit.local.cfg new file mode 100644 index 0000000..bf63c4f --- /dev/null +++ b/test/ExecutionEngine/OrcLazy/lit.local.cfg @@ -0,0 +1,2 @@ +if config.root.host_arch not in ['x86_64']: + config.unsupported = True diff --git a/test/ExecutionEngine/OrcLazy/trivial_retval_1.ll b/test/ExecutionEngine/OrcLazy/trivial_retval_1.ll new file mode 100644 index 0000000..701f22c --- /dev/null +++ b/test/ExecutionEngine/OrcLazy/trivial_retval_1.ll @@ -0,0 +1,26 @@ +; RUN: sh -c 'lli -jit-kind=orc-lazy %s; echo $?' | FileCheck %s +; CHECK: {{^30$}} +define i32 @baz() { +entry: + ret i32 2 +} + +define i32 @bar() { +entry: + %call = call i32 @baz() + %mul = mul nsw i32 3, %call + ret i32 %mul +} + +define i32 @foo() { +entry: + %call = call i32 @bar() + %mul = mul nsw i32 5, %call + ret i32 %mul +} + +define i32 @main(i32 %argc, i8** %argv) { +entry: + %call = call i32 @foo() + ret i32 %call +} |