[LoopVectorizer] Fix bailing-out condition for OptForSize case.
[oota-llvm.git] / test / Transforms / CodeExtractor / 2004-11-12-InvokeExtract.ll
index b654266f07edb96c33fdf8d09c21e0034b5b61de..0a83681a07174fa87ecc1731f1da9802b03c67b9 100644 (file)
@@ -1,10 +1,18 @@
-; RUN: llvm-as < %s | opt -extract-blocks -disable-output
-int %foo() {
-       br label %EB
-EB:
-       %V = invoke int %foo() to label %Cont unwind label %Unw
-Cont:
-       ret int %V
-Unw:
-       unwind
+; RUN: opt < %s -extract-blocks -disable-output
+define i32 @foo() personality i32 (...)* @__gcc_personality_v0 {
+        br label %EB
+
+EB:             ; preds = %0
+        %V = invoke i32 @foo( )
+                        to label %Cont unwind label %Unw                ; <i32> [#uses=1]
+
+Cont:           ; preds = %EB
+        ret i32 %V
+
+Unw:            ; preds = %EB
+        %exn = landingpad { i8*, i32 }
+                 catch i8* null
+        resume { i8*, i32 } %exn
 }
+
+declare i32 @__gcc_personality_v0(...)