mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
55 lines
885 B
LLVM
55 lines
885 B
LLVM
|
; RUN: llc -mtriple thumbv7-unknown-linux -o - %s | FileCheck %s
|
||
|
|
||
|
declare void @x()
|
||
|
declare void @y()
|
||
|
|
||
|
define void @f(i32 %x, i32 %y) {
|
||
|
; CHECK-LABEL: f:
|
||
|
; CHECK: cbnz
|
||
|
%p = icmp eq i32 %x, 0
|
||
|
br i1 %p, label %t, label %f
|
||
|
|
||
|
t:
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
; CHECK: cbnz
|
||
|
%q = icmp eq i32 %y, 0
|
||
|
br i1 %q, label %t2, label %f
|
||
|
|
||
|
t2:
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
call void @x()
|
||
|
br label %f
|
||
|
|
||
|
f:
|
||
|
call void @y()
|
||
|
ret void
|
||
|
}
|