Add encoding for VSTR.
[oota-llvm.git] / test / Transforms / SCCP / 2004-11-16-DeadInvoke.ll
index 544edc0b3c53011c0894f5a169b24e1d09ace696..5d2c78ef874c0a5f52ff9fcf750645418bdbfc21 100644 (file)
@@ -1,14 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp -disable-output
+; RUN: opt < %s -sccp -disable-output
 
-implementation
+declare i32 @foo()
 
-declare int %foo()
-
-void %caller() {
-       br bool true, label %T, label %F
-F:
-       %X = invoke int %foo() to label %T unwind label %T
-
-T:
+define void @caller() {
+       br i1 true, label %T, label %F
+F:             ; preds = %0
+       %X = invoke i32 @foo( )
+                       to label %T unwind label %T             ; <i32> [#uses=0]
+T:             ; preds = %F, %F, %0
        ret void
 }
+