Upgrade tests to not use llvm-upgrade.
[oota-llvm.git] / test / Transforms / SimplifyCFG / InvokeEliminate.ll
1 ; This testcase checks to see if the simplifycfg pass is converting invoke
2 ; instructions to call instructions if the handler just rethrows the exception.
3
4 ; If this test is successful, the function should be reduced to 'call; ret'
5
6 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
7 ; RUN:   not egrep {\\(invoke\\)|\\(br\\)}
8
9 declare void @bar()
10
11 define i32 @test() {
12         invoke void @bar( )
13                         to label %Ok unwind label %Rethrow
14 Ok:             ; preds = %0
15         ret i32 0
16 Rethrow:                ; preds = %0
17         unwind
18 }