brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · dd88924 Raw
60 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static -O0 < %s | FileCheck %s -check-prefix=lcb2 3@i = global i32 0, align 44@j = common global i32 0, align 45@k = common global i32 0, align 46 7; Function Attrs: nounwind8define i32 @s() #0 {9entry:10  %0 = load i32, ptr @i, align 411  %cmp = icmp eq i32 %0, 012  br i1 %cmp, label %if.then, label %if.else13 14if.then:                                          ; preds = %entry15  store i32 0, ptr @i, align 416  call void asm sideeffect ".space 1000", ""() #1, !srcloc !117  br label %if.end18 19if.else:                                          ; preds = %entry20  store i32 1, ptr @i, align 421  br label %if.end22 23if.end:                                           ; preds = %if.else, %if.then24  ret i32 025; lcb:	bnez	$2, $BB0_226; lcb:	b	$BB0_1 # 16 bit inst27; lcb: $BB0_1:                                 # %if.then28}29 30; Function Attrs: nounwind31define i32 @b() #0 {32entry:33  %0 = load i32, ptr @i, align 434  %cmp = icmp eq i32 %0, 035  br i1 %cmp, label %if.then, label %if.else36 37if.then:                                          ; preds = %entry38  store i32 0, ptr @i, align 439  call void asm sideeffect ".space 1000000", ""() #1, !srcloc !240  br label %if.end41 42if.else:                                          ; preds = %entry43  store i32 1, ptr @i, align 444  br label %if.end45 46if.end:                                           ; preds = %if.else, %if.then47  ret i32 048}49 50; lcb:	beqz	$2, $BB1_1  # 16 bit inst51; lcb:	jal	$BB1_2	# branch52; lcb: $BB1_1:                                 # %if.then53 54attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }55attributes #1 = { nounwind }56 57 58!1 = !{i32 65}59!2 = !{i32 167}60