mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-11 14:57:05 +00:00
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
29 lines
589 B
LLVM
29 lines
589 B
LLVM
; RUN: opt < %s -condprop -S | \
|
|
; RUN: not grep {br label}
|
|
; RUN: opt < %s -condprop -S | not grep T2
|
|
|
|
|
|
define i32 @test(i1 %C) {
|
|
br i1 %C, label %T1, label %F1
|
|
|
|
T1: ; preds = %0
|
|
br label %Cont
|
|
|
|
F1: ; preds = %0
|
|
br label %Cont
|
|
|
|
Cont: ; preds = %F1, %T1
|
|
%C2 = phi i1 [ false, %F1 ], [ true, %T1 ] ; <i1> [#uses=1]
|
|
br i1 %C2, label %T2, label %F2
|
|
|
|
T2: ; preds = %Cont
|
|
call void @bar( )
|
|
ret i32 17
|
|
|
|
F2: ; preds = %Cont
|
|
ret i32 1
|
|
}
|
|
|
|
declare void @bar()
|
|
|