1 ; RUN: llc -mtriple=mipsel -mcpu=mips32 -relocation-model=static -O3 < %s -mips-os16 | FileCheck %s -check-prefix=32
3 @x = global float 1.000000e+00, align 4
4 @y = global float 2.000000e+00, align 4
5 @zz = common global float 0.000000e+00, align 4
6 @z = common global float 0.000000e+00, align 4
8 define float @fv() #0 {
10 ret float 1.000000e+00
24 define double @dv() #0 {
26 ret double 2.000000e+00
40 define void @vf(float %x) #0 {
42 %x.addr = alloca float, align 4
43 store float %x, ptr %x.addr, align 4
58 define void @vd(double %x) #0 {
60 %x.addr = alloca double, align 8
61 store double %x, ptr %x.addr, align 8
76 define void @foo1() #0 {
78 store float 1.000000e+00, ptr @zz, align 4
79 %0 = load float, ptr @y, align 4
80 %1 = load float, ptr @x, align 4
81 %add = fadd float %0, %1
82 store float %add, ptr @z, align 4
97 define void @foo2() #0 {
99 %0 = load float, ptr @x, align 4
100 call void @vf(float %0)
116 define void @foo3() #0 {
118 %call = call float @fv()
119 store float %call, ptr @x, align 4
134 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
136 define void @vv() #0 {