aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/fneg.ll
blob: b322abdaa23c539edbf224628f931411741fd75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc  < %s -march=mipsel -mcpu=mips32 | FileCheck %s 

define float @foo0(i32 %a, float %d) nounwind readnone {
entry:
; CHECK-NOT: neg.s
  %sub = fsub float -0.000000e+00, %d
  ret float %sub
}

define double @foo1(i32 %a, double %d) nounwind readnone {
entry:
; CHECK:     foo1
; CHECK-NOT: neg.d
; CHECK:     jr
  %sub = fsub double -0.000000e+00, %d
  ret double %sub
}