Improve vectorization diagnostic messages and extend vectorize(enable) pragma.
[oota-llvm.git] / test / Transforms / ADCE / 2003-09-10-UnwindInstFail.ll
index e6345c13eba3b306a990fdc110bde63231cfe137..607bf2e58095f44357ecb504e16aa870ced4369a 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | opt -adce -disable-output
+; RUN: opt < %s -adce -disable-output
 
-define void @test() {
+define void @test() personality i32 (...)* @__gxx_personality_v0 {
         br i1 false, label %then, label %endif
 
 then:           ; preds = %0
@@ -8,7 +8,9 @@ then:           ; preds = %0
                         to label %invoke_cont unwind label %invoke_catch
 
 invoke_catch:           ; preds = %then
-        unwind
+        %exn = landingpad {i8*, i32}
+                 cleanup
+        resume { i8*, i32 } %exn
 
 invoke_cont:            ; preds = %then
         ret void
@@ -17,3 +19,4 @@ endif:          ; preds = %0
         ret void
 }
 
+declare i32 @__gxx_personality_v0(...)