summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/2003-05-06-LivenessClobber.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-19 22:32:52 +0000
committerChris Lattner <sabre@nondot.org>2008-04-19 22:32:52 +0000
commit5ae21fb23a55427738132a39c8df550c9c1d0771 (patch)
treec6eb6b32b7cc36629c9abb53e6974aafe6dbf32f /test/ExecutionEngine/2003-05-06-LivenessClobber.ll
parent1ce9e00f8b449be9bcf34d16fadaacf074a16362 (diff)
downloadllvm-5ae21fb23a55427738132a39c8df550c9c1d0771.tar.gz
llvm-5ae21fb23a55427738132a39c8df550c9c1d0771.tar.bz2
llvm-5ae21fb23a55427738132a39c8df550c9c1d0771.tar.xz
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.ll19
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 0000000000..57fe95b2d9
--- /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
+}
+
+