2015-04-24 04:31:35 +08:00
|
|
|
; 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()
|
2017-02-01 07:48:32 +08:00
|
|
|
; CHECK: cbz
|
2015-04-24 04:31:35 +08:00
|
|
|
%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
|
|
|
|
}
|