Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static -mips16-constant-islands   < %s | FileCheck %s -check-prefix=constisle
      2 
      3 @i = common global i32 0, align 4
      4 @b = common global i32 0, align 4
      5 @l = common global i32 0, align 4
      6 
      7 ; Function Attrs: nounwind
      8 define void @foo() #0 {
      9 entry:
     10   store i32 305419896, i32* @i, align 4
     11   %0 = load i32* @b, align 4
     12   %tobool = icmp ne i32 %0, 0
     13   br i1 %tobool, label %if.then, label %if.else
     14 
     15 if.then:                                          ; preds = %entry
     16   store i32 10, i32* @b, align 4
     17   br label %if.end
     18 
     19 if.else:                                          ; preds = %entry
     20   store i32 20, i32* @b, align 4
     21   br label %if.end
     22 
     23 if.end:                                           ; preds = %if.else, %if.then
     24   call void asm sideeffect ".space 100000", ""() #1, !srcloc !1
     25   store i32 305419896, i32* @l, align 4
     26   ret void
     27 ; constisle: $CPI0_1:
     28 ; constisle	.4byte	305419896               # 0x12345678
     29 ; constisle	#APP
     30 ; constisle	.space 100000
     31 ; constisle	#NO_APP
     32 ; constisle $CPI0_0:
     33 ; constisle	.4byte	305419896               # 0x12345678
     34 }
     35 
     36 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" }
     37 attributes #1 = { nounwind }
     38 
     39 !1 = metadata !{i32 103}
     40