1 ; RUN: opt < %s -lowerinvoke -S | FileCheck %s
3 declare i32 @external_func(i64 %arg)
5 define i32 @invoke_test(i64 %arg) personality i8* null {
7 %result = invoke fastcc i32 @external_func(i64 inreg %arg)
8 to label %cont unwind label %lpad
12 %phi = phi i32 [ 99, %entry ]
13 %lp = landingpad { i8*, i32 } cleanup
17 ; The "invoke" should be converted to a "call".
18 ; CHECK-LABEL: define i32 @invoke_test
19 ; CHECK: %result = call fastcc i32 @external_func(i64 inreg %arg)
20 ; CHECK-NEXT: br label %cont
22 ; Note that this pass does not remove dead landingpad blocks.