1; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=16
2
3@i = global i32 1, align 4
4@j = global i32 2, align 4
5@a = global i32 5, align 4
6@.str = private unnamed_addr constant [9 x i8] c"%i = 2 \0A\00", align 1
7@k = common global i32 0, align 4
8
9define void @t() nounwind "target-cpu"="mips16" "target-features"="+mips16,+o32" {
10entry:
11  %0 = load i32, i32* @a, align 4
12  %cmp = icmp slt i32 %0, 10
13  %1 = load i32, i32* @j, align 4
14  %2 = load i32, i32* @i, align 4
15  %cond = select i1 %cmp, i32 %1, i32 %2
16  store i32 %cond, i32* @i, align 4
17  ret void
18}
19
20attributes #0 = { nounwind "target-cpu"="mips16" "target-features"="+mips16,+o32" }
21
22; 16:	slti	${{[0-9]+}}, 10
23; 16:	btnez	$BB{{[0-9]+}}_{{[0-9]}}
24
25
26