From 4b0b8ef1b0edc2c343145f6b029c43b00a6f5c13 Mon Sep 17 00:00:00 2001 From: Danil Malyshev Date: Thu, 29 Mar 2012 21:46:18 +0000 Subject: Re-factored RuntimeDyld. Added ExecutionEngine/MCJIT tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153694 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../MCJIT/2003-05-06-LivenessClobber.ll | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll (limited to 'test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll') diff --git a/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll b/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll new file mode 100644 index 0000000..e95294b --- /dev/null +++ b/test/ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll @@ -0,0 +1,19 @@ +; This testcase should return with an exit code of 1. +; +; RUN: not %lli -use-mcjit %s + +@test = global i64 0 ; [#uses=1] + +define internal i64 @test.upgrd.1() { + %tmp.0 = load i64* @test ; [#uses=1] + %tmp.1 = add i64 %tmp.0, 1 ; [#uses=1] + ret i64 %tmp.1 +} + +define i32 @main() { + %L = call i64 @test.upgrd.1( ) ; [#uses=1] + %I = trunc i64 %L to i32 ; [#uses=1] + ret i32 %I +} + + -- cgit v1.1