summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
commit5f4b355f209c772f438d33f3e60c04403d5462eb (patch)
tree25f6441aedb4ae5e89993b0ebaca6817ef24acd2 /llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
parentb5d11980d9c54e4a0ebb3873ef89054726643658 (diff)
downloadbcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.tar.gz
bcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.zip
Remove llvm-upgrade and update tests.
llvm-svn: 48137
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll24
1 files changed, 13 insertions, 11 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll b/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
index c3b4194e1e7..a0fe7817743 100644
--- a/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
+++ b/llvm/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
@@ -1,13 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
+; RUN: llvm-as < %s | opt -simplifycfg -disable-output
-bool %foo() {
- %X = invoke bool %foo() to label %N unwind label %F
-F:
- ret bool false
-N:
- br bool %X, label %A, label %B
-A:
- ret bool true
-B:
- ret bool true
+define i1 @foo() {
+ %X = invoke i1 @foo( )
+ to label %N unwind label %F ; <i1> [#uses=1]
+F: ; preds = %0
+ ret i1 false
+N: ; preds = %0
+ br i1 %X, label %A, label %B
+A: ; preds = %N
+ ret i1 true
+B: ; preds = %N
+ ret i1 true
}
+
OpenPOWER on IntegriCloud