82 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mcpu=mips32 -relocation-model=static -O3 < %s -mips-os16 | FileCheck %s -check-prefix=322 3; RUN: llc -mtriple=mipsel-linux-gnu -mcpu=mips32 -relocation-model=static -O3 -mips16-constant-islands < %s -mips-os16 | FileCheck %s -check-prefix=cisle4 5@i = global i32 1, align 46@f = global float 1.000000e+00, align 47 8define void @vv() #0 {9entry:10 ret void11}12 13; 32: .set mips1614; 32: .ent vv15 16; 32: save {{.+}}17; 32: restore {{.+}} 18; 32: .end vv19 20define i32 @iv() #0 {21entry:22 %0 = load i32, ptr @i, align 423 ret i32 %024}25 26; 32: .set mips1627; 32: .ent iv28 29; 32: save {{.+}}30; 32: restore {{.+}} 31; 32: .end iv32 33define void @vif(i32 %i, float %f) #0 {34entry:35 %i.addr = alloca i32, align 436 %f.addr = alloca float, align 437 store i32 %i, ptr %i.addr, align 438 store float %f, ptr %f.addr, align 439 ret void40}41 42; 32: .set mips1643; 32: .ent vif44 45; 32: save {{.+}}46; 32: restore {{.+}} 47; 32: .end vif48 49define void @foo() #0 {50entry:51 store float 2.000000e+00, ptr @f, align 452 ret void53}54 55; 32: .set mips1656; 32: .ent foo57 58; 32: save {{.+}}59; 32: restore {{.+}} 60; 32: .end foo61 62; cisle: .end foo63 64attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }65 66 67define float @fv() #0 {68entry:69 ret float 1.000000e+0070}71 72; 32: .set nomips1673; 32: .ent fv74; 32: .set noreorder75; 32: .set nomacro76; 32: .set noat77; 32: jr $ra78; 32: .set at79; 32: .set macro80; 32: .set reorder81; 32: .end fv82