1 ; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O2 < %s | FileCheck %s -check-prefix=16
3 @i = global i32 -5, align 4
4 @j = global i32 10, align 4
5 @k = global i32 -5, align 4
6 @result1 = global i32 0, align 4
7 @result2 = global i32 1, align 4
9 define void @test() nounwind {
11 %0 = load i32, i32* @j, align 4
12 %1 = load i32, i32* @i, align 4
13 %cmp = icmp sgt i32 %0, %1
14 br i1 %cmp, label %if.then, label %if.end
16 ; 16: slt ${{[0-9]+}}, ${{[0-9]+}}
17 ; 16: bteqz $[[LABEL:[0-9A-Ba-b_]+]]
20 if.then: ; preds = %entry
21 store i32 1, i32* @result1, align 4
24 if.end: ; preds = %if.then, %entry
25 %2 = load i32, i32* @k, align 4
26 %cmp1 = icmp sgt i32 %1, %2
27 br i1 %cmp1, label %if.then2, label %if.end3
29 if.then2: ; preds = %if.end
30 store i32 0, i32* @result1, align 4
33 if.end3: ; preds = %if.then2, %if.end