57 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s2 3; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=NEG4 5@f = common global float 0.000000e+00, align 46 7; Function Attrs: nounwind8define void @foo1() #0 {9entry:10 %c = alloca [10 x i8], align 111 call void @x(ptr %c)12 call void @x(ptr %c)13 ret void14; CHECK: .ent foo115; CHECK: save $16, $17, $ra, [[FS:[0-9]+]] # 16 bit inst16; CHECK: restore $16, $17, $ra, [[FS]] # 16 bit inst17; CHECK: .end foo118}19 20declare void @x(ptr) #121 22; Function Attrs: nounwind23define void @foo2() #0 {24entry:25 %c = alloca [150 x i8], align 126 call void @x(ptr %c)27 call void @x(ptr %c)28 ret void29; CHECK: .ent foo230; CHECK: save $16, $17, $ra, [[FS:[0-9]+]] 31; CHECK: restore $16, $17, $ra, [[FS]] 32; CHECK: .end foo233}34 35; Function Attrs: nounwind36define void @foo3() #0 {37entry:38 %call = call float @xf()39 store float %call, ptr @f, align 440 ret void41; CHECK: .ent foo342; CHECK: save $16, $17, $ra, $18, [[FS:[0-9]+]]43; CHECK: restore $16, $17, $ra, $18, [[FS]]44; CHECK: .end foo345; NEG: .ent foo346; NEG-NOT: save $16, $17, $ra, $18, {{[0-9]+}} # 16 bit inst47; NEG-NOT: restore $16, $17, $ra, $18, {{[0-9]+}} # 16 bit inst48; NEG: .end foo349}50 51declare float @xf() #152 53attributes #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" }54attributes #1 = { "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" }55 56 57