Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / Mips / brconeqz.ll
1 ; RUN: llc  -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
2
3 @i = global i32 5, align 4
4 @result = global i32 0, align 4
5
6 define void @test() nounwind {
7 entry:
8   %0 = load i32* @i, align 4
9   %cmp = icmp eq i32 %0, 0
10   br i1 %cmp, label %if.end, label %if.then
11 ; 16:   beqz    ${{[0-9]+}}, $[[LABEL:[0-9A-Ba-b_]+]]
12 ; 16: $[[LABEL]]:
13 if.then:                                          ; preds = %entry
14   store i32 1, i32* @result, align 4
15   br label %if.end
16
17 if.end:                                           ; preds = %entry, %if.then
18   ret void
19 }
20