mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|