Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / Mips / brcongt.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 @j = global i32 10, align 4
5 @k = global i32 5, align 4
6 @result = global i32 0, align 4
7
8 define void @test() nounwind {
9 entry:
10   %0 = load i32* @i, align 4
11   %1 = load i32* @j, align 4
12   %cmp = icmp sgt i32 %0, %1
13   br i1 %cmp, label %if.end, label %if.then
14 ; 16:   slt     ${{[0-9]+}}, ${{[0-9]+}}
15 ; 16:   btnez   $[[LABEL:[0-9A-Ba-b_]+]]
16 ; 16: $[[LABEL]]:
17 if.then:                                          ; preds = %entry
18   store i32 1, i32* @result, align 4
19   br label %if.end
20
21 if.end:                                           ; preds = %entry, %if.then
22   ret void
23 }
24
25