1 ; RUN: llc -mtriple=aarch64-apple-ios7.0 -disable-block-placement -aarch64-tbz-offset-bits=4 -o - %s | FileCheck %s
2 define i32 @test_asm_length(i32 %in) {
3 ; CHECK-LABEL: test_asm_length:
5 ; It would be more natural to use just one "tbnz %false" here, but if the
6 ; number of instructions in the asm is counted reasonably, that block is out
7 ; of the limited range we gave tbz. So branch relaxation has to invert the
9 ; CHECK: tbz w0, #0, [[TRUE:LBB[0-9]+_[0-9]+]]
10 ; CHECK: b [[FALSE:LBB[0-9]+_[0-9]+]]
26 %tst = icmp eq i32 %val, 0
27 br i1 %tst, label %true, label %false
30 call void asm sideeffect "nop\0A\09nop\0A\09nop\0A\09nop\0A\09nop\0A\09nop", ""()