summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-09 18:27:22 +0000
committerdim <dim@FreeBSD.org>2011-12-09 18:27:22 +0000
commit07637c87f826cdf411f0673595e9bc92ebd793f2 (patch)
treed5baf24dba561bcf8bc6ec60db36bfc5586f6378 /test/Transforms/InstCombine
parent7b3392326c40c3c20697816acae597ba7b3144eb (diff)
downloadFreeBSD-src-07637c87f826cdf411f0673595e9bc92ebd793f2.zip
FreeBSD-src-07637c87f826cdf411f0673595e9bc92ebd793f2.tar.gz
Vendor import of llvm 3.0 final release:
http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_30/final@145349
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/crash.ll25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/crash.ll b/test/Transforms/InstCombine/crash.ll
index 1a657f5..54a77aa 100644
--- a/test/Transforms/InstCombine/crash.ll
+++ b/test/Transforms/InstCombine/crash.ll
@@ -374,3 +374,28 @@ for.inc: ; preds = %for.cond
return: ; No predecessors!
ret void
}
+
+; PR11275
+declare void @test18b() noreturn
+declare void @test18foo(double**)
+declare void @test18a() noreturn
+define fastcc void @test18x(i8* %t0, i1 %b) uwtable align 2 {
+entry:
+ br i1 %b, label %e1, label %e2
+e1:
+ %t2 = bitcast i8* %t0 to double**
+ invoke void @test18b() noreturn
+ to label %u unwind label %lpad
+e2:
+ %t4 = bitcast i8* %t0 to double**
+ invoke void @test18a() noreturn
+ to label %u unwind label %lpad
+lpad:
+ %t5 = phi double** [ %t2, %e1 ], [ %t4, %e2 ]
+ %lpad.nonloopexit262 = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ cleanup
+ call void @test18foo(double** %t5)
+ unreachable
+u:
+ unreachable
+}
OpenPOWER on IntegriCloud