aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-18 00:05:45 +0000
committerEric Christopher <echristo@apple.com>2012-02-18 00:05:45 +0000
commit50627097b7875b002a0be4c04f564b65c4d3e79b (patch)
tree1a6916f9ce97f6bb81d35ee7f2bb75da9dbcb832 /test
parentecb50624d1e99596fdb289200cd1473cec84e097 (diff)
downloadexternal_llvm-50627097b7875b002a0be4c04f564b65c4d3e79b.zip
external_llvm-50627097b7875b002a0be4c04f564b65c4d3e79b.tar.gz
external_llvm-50627097b7875b002a0be4c04f564b65c4d3e79b.tar.bz2
Testcase for the previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/fast-isel.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll
index 8391860..c88d529 100644
--- a/test/CodeGen/X86/fast-isel.ll
+++ b/test/CodeGen/X86/fast-isel.ll
@@ -99,7 +99,6 @@ define void @load_store_i1(i1* %p, i1* %q) nounwind {
ret void
}
-
@crash_test1x = external global <2 x i32>, align 8
define void @crash_test1() nounwind ssp {
@@ -108,3 +107,13 @@ define void @crash_test1() nounwind ssp {
ret void
}
+declare void @llvm.lifetime.start(i64, i8* nocapture) nounwind
+
+define i64* @life() nounwind {
+ %a1 = alloca i64*, align 8
+ %a2 = bitcast i64** %a1 to i8*
+ call void @llvm.lifetime.start(i64 -1, i8* %a2) nounwind
+ %a3 = load i64** %a1, align 8
+ ret i64* %a3
+}
+