mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-15 05:25:55 +00:00
14 lines
263 B
LLVM
14 lines
263 B
LLVM
|
; RUN: llvm-as < %s | llc -march=arm
|
||
|
void %f(int %a, int* %v) {
|
||
|
entry:
|
||
|
%tmp = seteq int %a, 0 ; <bool> [#uses=1]
|
||
|
br bool %tmp, label %cond_true, label %return
|
||
|
|
||
|
cond_true: ; preds = %entry
|
||
|
store int 0, int* %v
|
||
|
ret void
|
||
|
|
||
|
return: ; preds = %entry
|
||
|
ret void
|
||
|
}
|