llvm.org GIT mirror llvm / release_29 test / CodeGen / Generic / 2004-02-08-UnwindSupport.ll
release_29

Tree @release_29 (Download .tar.gz)

2004-02-08-UnwindSupport.ll @release_29raw · history · blame

; RUN: llc < %s -enable-correct-eh-support

define i32 @test() {
        unwind
}

define i32 @main() {
        %X = invoke i32 @test( )
                        to label %cont unwind label %EH         ; <i32> [#uses=0]

cont:           ; preds = %0
        ret i32 1

EH:             ; preds = %0
        ret i32 0
}