diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-19 22:32:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-19 22:32:52 +0000 |
commit | 5ae21fb23a55427738132a39c8df550c9c1d0771 (patch) | |
tree | c6eb6b32b7cc36629c9abb53e6974aafe6dbf32f /test/ExecutionEngine/2003-05-06-LivenessClobber.ll | |
parent | 1ce9e00f8b449be9bcf34d16fadaacf074a16362 (diff) | |
download | external_llvm-5ae21fb23a55427738132a39c8df550c9c1d0771.zip external_llvm-5ae21fb23a55427738132a39c8df550c9c1d0771.tar.gz external_llvm-5ae21fb23a55427738132a39c8df550c9c1d0771.tar.bz2 |
rename *.llx -> *.ll, last batch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/2003-05-06-LivenessClobber.ll')
-rw-r--r-- | test/ExecutionEngine/2003-05-06-LivenessClobber.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-05-06-LivenessClobber.ll b/test/ExecutionEngine/2003-05-06-LivenessClobber.ll new file mode 100644 index 0000000..57fe95b --- /dev/null +++ b/test/ExecutionEngine/2003-05-06-LivenessClobber.ll @@ -0,0 +1,19 @@ +; This testcase shoudl return with an exit code of 1. +; +; RUN: llvm-as < %s | not lli + +@test = global i64 0 ; <i64*> [#uses=1] + +define internal i64 @test.upgrd.1() { + %tmp.0 = load i64* @test ; <i64> [#uses=1] + %tmp.1 = add i64 %tmp.0, 1 ; <i64> [#uses=1] + ret i64 %tmp.1 +} + +define i32 @main() { + %L = call i64 @test.upgrd.1( ) ; <i64> [#uses=1] + %I = trunc i64 %L to i32 ; <i32> [#uses=1] + ret i32 %I +} + + |