1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s
3 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=NEG
5 @f = common global float 0.000000e+00, align 4
7 ; Function Attrs: nounwind
8 define void @foo1() #0 {
10 %c = alloca [10 x i8], align 1
15 ; CHECK: save $16, $17, $ra, [[FS:[0-9]+]] # 16 bit inst
16 ; CHECK: restore $16, $17, $ra, [[FS]] # 16 bit inst
20 declare void @x(ptr) #1
22 ; Function Attrs: nounwind
23 define void @foo2() #0 {
25 %c = alloca [150 x i8], align 1
30 ; CHECK: save $16, $17, $ra, [[FS:[0-9]+]]
31 ; CHECK: restore $16, $17, $ra, [[FS]]
35 ; Function Attrs: nounwind
36 define void @foo3() #0 {
38 %call = call float @xf()
39 store float %call, ptr @f, align 4
42 ; CHECK: save $16, $17, $ra, $18, [[FS:[0-9]+]]
43 ; CHECK: restore $16, $17, $ra, $18, [[FS]]
46 ; NEG-NOT: save $16, $17, $ra, $18, {{[0-9]+}} # 16 bit inst
47 ; NEG-NOT: restore $16, $17, $ra, $18, {{[0-9]+}} # 16 bit inst
51 declare float @xf() #1
53 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
54 attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }