70 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=ci2 3@i = global i32 0, align 44@j = common global i32 0, align 45@k = common global i32 0, align 46 7; Function Attrs: nounwind optsize8define i32 @foo() #0 {9entry:10 %0 = load i32, ptr @i, align 4, !tbaa !111 %cmp = icmp eq i32 %0, 012 br i1 %cmp, label %if.then, label %if.else13 14if.then: ; preds = %entry15 tail call void asm sideeffect ".space 1000", ""() #1, !srcloc !516 br label %if.end17 18if.else: ; preds = %entry19 tail call void asm sideeffect ".space 1004", ""() #1, !srcloc !620 br label %if.end21 22if.end: ; preds = %if.else, %if.then23 %storemerge = phi i32 [ 1, %if.else ], [ 0, %if.then ]24 store i32 %storemerge, ptr @i, align 4, !tbaa !125 ret i32 026}27 28; ci: beqz $3, $BB0_229; ci: # %bb.1: # %if.else30 31 32; Function Attrs: nounwind optsize33define i32 @goo() #0 {34entry:35 %0 = load i32, ptr @i, align 4, !tbaa !136 %cmp = icmp eq i32 %0, 037 br i1 %cmp, label %if.then, label %if.else38 39if.then: ; preds = %entry40 tail call void asm sideeffect ".space 1000000", ""() #1, !srcloc !741 br label %if.end42 43if.else: ; preds = %entry44 tail call void asm sideeffect ".space 1000004", ""() #1, !srcloc !845 br label %if.end46 47if.end: ; preds = %if.else, %if.then48 %storemerge = phi i32 [ 1, %if.else ], [ 0, %if.then ]49 store i32 %storemerge, ptr @i, align 4, !tbaa !150 ret i32 051}52 53; ci: bnez $3, $BB1_1 # 16 bit inst54; ci: jal $BB1_2 # branch55; ci: nop56; ci: $BB1_1: # %if.else57 58attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }59attributes #1 = { nounwind }60 61 62!1 = !{!2, !2, i64 0}63!2 = !{!"int", !3, i64 0}64!3 = !{!"omnipotent char", !4, i64 0}65!4 = !{!"Simple C/C++ TBAA"}66!5 = !{i32 58}67!6 = !{i32 108}68!7 = !{i32 190}69!8 = !{i32 243}70