1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static -O0 < %s | FileCheck %s -check-prefix=lcb
3 @i = global i32 0, align 4
4 @j = common global i32 0, align 4
5 @k = common global i32 0, align 4
7 ; Function Attrs: nounwind
10 %0 = load i32, i32* @i, align 4
11 %cmp = icmp eq i32 %0, 0
12 br i1 %cmp, label %if.then, label %if.else
14 if.then: ; preds = %entry
15 store i32 0, i32* @i, align 4
16 call void asm sideeffect ".space 1000", ""() #1, !srcloc !1
19 if.else: ; preds = %entry
20 store i32 1, i32* @i, align 4
23 if.end: ; preds = %if.else, %if.then
25 ; lcb: bnez $2, $BB0_2
26 ; lcb: b $BB0_1 # 16 bit inst
27 ; lcb: $BB0_1: # %if.then
30 ; Function Attrs: nounwind
33 %0 = load i32, i32* @i, align 4
34 %cmp = icmp eq i32 %0, 0
35 br i1 %cmp, label %if.then, label %if.else
37 if.then: ; preds = %entry
38 store i32 0, i32* @i, align 4
39 call void asm sideeffect ".space 1000000", ""() #1, !srcloc !2
42 if.else: ; preds = %entry
43 store i32 1, i32* @i, align 4
46 if.end: ; preds = %if.else, %if.then
50 ; lcb: beqz $2, $BB1_1 # 16 bit inst
51 ; lcb: jal $BB1_2 # branch
52 ; lcb: $BB1_1: # %if.then
54 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
55 attributes #1 = { nounwind }