2012-04-11 23:11:33 +00:00
|
|
|
; RUN: llc < %s -march=mipsel -mcpu=mips32 | FileCheck %s -check-prefix=NAN
|
|
|
|
; RUN: llc < %s -march=mipsel -mcpu=mips32 -enable-no-nans-fp-math | FileCheck %s -check-prefix=NO-NAN
|
2012-04-11 22:59:08 +00:00
|
|
|
|
|
|
|
define float @foo0(i32 %a, float %d) nounwind readnone {
|
|
|
|
entry:
|
2012-04-11 23:11:33 +00:00
|
|
|
; CHECK-NOT: neg.s
|
2012-04-11 22:59:08 +00:00
|
|
|
%sub = fsub float -0.000000e+00, %d
|
|
|
|
ret float %sub
|
|
|
|
}
|
|
|
|
|
|
|
|
define double @foo1(i32 %a, double %d) nounwind readnone {
|
|
|
|
entry:
|
2012-04-11 23:11:33 +00:00
|
|
|
; CHECK: foo1
|
|
|
|
; CHECK-NOT: neg.d
|
|
|
|
; CHECK: jr
|
2012-04-11 22:59:08 +00:00
|
|
|
%sub = fsub double -0.000000e+00, %d
|
|
|
|
ret double %sub
|
|
|
|
}
|