1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci
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 optsize
10 %0 = load i32, i32* @i, align 4, !tbaa !1
11 %cmp = icmp eq i32 %0, 0
12 br i1 %cmp, label %if.then, label %if.else
14 if.then: ; preds = %entry
15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !5
18 if.else: ; preds = %entry
19 tail call void asm sideeffect ".space 1004", ""() #1, !srcloc !6
22 if.end: ; preds = %if.else, %if.then
23 %storemerge = phi i32 [ 1, %if.else ], [ 0, %if.then ]
24 store i32 %storemerge, i32* @i, align 4, !tbaa !1
29 ; ci: # %bb.1: # %if.else
32 ; Function Attrs: nounwind optsize
33 define i32 @goo() #0 {
35 %0 = load i32, i32* @i, align 4, !tbaa !1
36 %cmp = icmp eq i32 %0, 0
37 br i1 %cmp, label %if.then, label %if.else
39 if.then: ; preds = %entry
40 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !7
43 if.else: ; preds = %entry
44 tail call void asm sideeffect ".space 1000004", ""() #1, !srcloc !8
47 if.end: ; preds = %if.else, %if.then
48 %storemerge = phi i32 [ 1, %if.else ], [ 0, %if.then ]
49 store i32 %storemerge, i32* @i, align 4, !tbaa !1
53 ; ci: bnez $3, $BB1_1 # 16 bit inst
54 ; ci: jal $BB1_2 # branch
56 ; ci: $BB1_1: # %if.else
58 attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
59 attributes #1 = { nounwind }
63 !2 = !{!"int", !3, i64 0}
64 !3 = !{!"omnipotent char", !4, i64 0}
65 !4 = !{!"Simple C/C++ TBAA"}