mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
4572ce85b0
llvm-svn: 33296
18 lines
311 B
LLVM
18 lines
311 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -adce -simplifycfg | llvm-dis | grep call
|
|
declare void %exit(int)
|
|
|
|
int %main(int %argc) {
|
|
%C = seteq int %argc, 1
|
|
br bool %C, label %Cond, label %Done
|
|
|
|
Cond:
|
|
br bool %C, label %Loop, label %Done
|
|
|
|
Loop:
|
|
call void %exit(int 0)
|
|
br label %Loop
|
|
|
|
Done:
|
|
ret int 1
|
|
}
|