mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +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
23 lines
505 B
LLVM
23 lines
505 B
LLVM
; RUN: opt < %s -predsimplify -simplifycfg -S | grep pass
|
|
|
|
define void @regtest(i32 %x) {
|
|
entry:
|
|
%A = icmp eq i32 %x, 0 ; <i1> [#uses=1]
|
|
br i1 %A, label %middle, label %after
|
|
middle: ; preds = %entry
|
|
br label %after
|
|
after: ; preds = %middle, %entry
|
|
%B = icmp eq i32 %x, 0 ; <i1> [#uses=1]
|
|
br i1 %B, label %then, label %else
|
|
then: ; preds = %after
|
|
br label %end
|
|
else: ; preds = %after
|
|
call void (...)* @pass( )
|
|
br label %end
|
|
end: ; preds = %else, %then
|
|
ret void
|
|
}
|
|
|
|
declare void @pass(...)
|
|
|