diff options
author | Eric Christopher <echristo@apple.com> | 2012-02-18 00:05:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-02-18 00:05:45 +0000 |
commit | c767c51b5dd933fd48f20fd78b16f1f9f2150d84 (patch) | |
tree | f3aa929eae45a1ea64dd16428901729e2f511f1e | |
parent | 59761985dd545a9593f4a54c710059ed194fb327 (diff) | |
download | bcm5719-llvm-c767c51b5dd933fd48f20fd78b16f1f9f2150d84.tar.gz bcm5719-llvm-c767c51b5dd933fd48f20fd78b16f1f9f2150d84.zip |
Testcase for the previous commit.
llvm-svn: 150852
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel.ll | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll index 8391860756a..c88d52968dd 100644 --- a/llvm/test/CodeGen/X86/fast-isel.ll +++ b/llvm/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 +} + |