1 ; RUN: llc < %s -march=mipsel -mcpu=mips32r2 -enable-no-nans-fp-math | FileCheck %s -check-prefix=32R2 -check-prefix=CHECK
2 ; RUN: llc < %s -march=mips64el -mcpu=mips64r2 -mattr=n64 -enable-no-nans-fp-math | FileCheck %s -check-prefix=64R2 -check-prefix=CHECK
3 ; RUN: llc < %s -march=mipsel -mcpu=mips32r2 | FileCheck %s -check-prefix=32R2NAN -check-prefix=CHECK
4 ; RUN: llc < %s -march=mips64el -mcpu=mips64r2 -mattr=n64 | FileCheck %s -check-prefix=64R2NAN -check-prefix=CHECK
6 define float @FOO0float(float %a, float %b, float %c) nounwind readnone {
9 %mul = fmul float %a, %b
10 %add = fadd float %mul, %c
11 %add1 = fadd float %add, 0.000000e+00
15 define float @FOO1float(float %a, float %b, float %c) nounwind readnone {
18 %mul = fmul float %a, %b
19 %sub = fsub float %mul, %c
20 %add = fadd float %sub, 0.000000e+00
24 define float @FOO2float(float %a, float %b, float %c) nounwind readnone {
30 %mul = fmul float %a, %b
31 %add = fadd float %mul, %c
32 %sub = fsub float 0.000000e+00, %add
36 define float @FOO3float(float %a, float %b, float %c) nounwind readnone {
42 %mul = fmul float %a, %b
43 %sub = fsub float %mul, %c
44 %sub1 = fsub float 0.000000e+00, %sub
48 define double @FOO10double(double %a, double %b, double %c) nounwind readnone {
51 %mul = fmul double %a, %b
52 %add = fadd double %mul, %c
53 %add1 = fadd double %add, 0.000000e+00
57 define double @FOO11double(double %a, double %b, double %c) nounwind readnone {
60 %mul = fmul double %a, %b
61 %sub = fsub double %mul, %c
62 %add = fadd double %sub, 0.000000e+00
66 define double @FOO12double(double %a, double %b, double %c) nounwind readnone {
72 %mul = fmul double %a, %b
73 %add = fadd double %mul, %c
74 %sub = fsub double 0.000000e+00, %add
78 define double @FOO13double(double %a, double %b, double %c) nounwind readnone {
84 %mul = fmul double %a, %b
85 %sub = fsub double %mul, %c
86 %sub1 = fsub double 0.000000e+00, %sub