mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
4572ce85b0
llvm-svn: 33296
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(...)
|