mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
736 B
LLVM
31 lines
736 B
LLVM
; RUN: opt < %s -lowerinvoke -disable-output -enable-correct-eh-support
|
|
|
|
|
|
define i32 @foo() {
|
|
invoke i32 @foo( )
|
|
to label %Ok unwind label %Crap ; <i32>:1 [#uses=0]
|
|
Ok: ; preds = %0
|
|
invoke i32 @foo( )
|
|
to label %Ok2 unwind label %Crap ; <i32>:2 [#uses=0]
|
|
Ok2: ; preds = %Ok
|
|
ret i32 2
|
|
Crap: ; preds = %Ok, %0
|
|
ret i32 1
|
|
}
|
|
|
|
define i32 @bar(i32 %blah) {
|
|
br label %doit
|
|
doit: ; preds = %0
|
|
;; Value live across an unwind edge.
|
|
%B2 = add i32 %blah, 1 ; <i32> [#uses=1]
|
|
invoke i32 @foo( )
|
|
to label %Ok unwind label %Crap ; <i32>:1 [#uses=0]
|
|
Ok: ; preds = %doit
|
|
invoke i32 @foo( )
|
|
to label %Ok2 unwind label %Crap ; <i32>:2 [#uses=0]
|
|
Ok2: ; preds = %Ok
|
|
ret i32 2
|
|
Crap: ; preds = %Ok, %doit
|
|
ret i32 %B2
|
|
}
|