mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
398 B
LLVM
22 lines
398 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -predsimplify -simplifycfg | llvm-dis | grep pass
|
|
|
|
void %regtest(int %x) {
|
|
entry:
|
|
%A = seteq int %x, 0
|
|
br bool %A, label %middle, label %after
|
|
middle:
|
|
br label %after
|
|
after:
|
|
%B = seteq int %x, 0
|
|
br bool %B, label %then, label %else
|
|
then:
|
|
br label %end
|
|
else:
|
|
call void (...)* %pass( )
|
|
br label %end
|
|
end:
|
|
ret void
|
|
}
|
|
|
|
declare void %pass(...)
|