Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / Mips / brconeqk.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, 10
10   br i1 %cmp, label %if.end, label %if.then
11 ; 16:   cmpi    ${{[0-9]+}}, {{[0-9]+}}
12 ; 16:   bteqz   $[[LABEL:[0-9A-Ba-b_]+]]
13 ; 16: $[[LABEL]]:
14 if.then:                                          ; preds = %entry
15   store i32 1, i32* @result, align 4
16   br label %if.end
17
18 if.end:                                           ; preds = %entry, %if.then
19   ret void
20 }
21
22