diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-04-11 22:49:04 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-04-11 22:49:04 +0000 |
commit | c12a6e6b53bb6df62a0020bda91206fd149c430a (patch) | |
tree | 4ca7453c91df79baf7c983becc08db67a941a995 /lib/Target/Mips/MipsInstrFPU.td | |
parent | b318cc16c9e959adb96294b3aa4940e74f68dde3 (diff) | |
download | external_llvm-c12a6e6b53bb6df62a0020bda91206fd149c430a.zip external_llvm-c12a6e6b53bb6df62a0020bda91206fd149c430a.tar.gz external_llvm-c12a6e6b53bb6df62a0020bda91206fd149c430a.tar.bz2 |
Emit abs.s or abs.d only if -enable-no-nans-fp-math is supplied by user.
Invalid operation is signaled if the operand of these instructions is NaN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFPU.td')
-rw-r--r-- | lib/Target/Mips/MipsInstrFPU.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrFPU.td b/lib/Target/Mips/MipsInstrFPU.td index fe5eaec..332bc11 100644 --- a/lib/Target/Mips/MipsInstrFPU.td +++ b/lib/Target/Mips/MipsInstrFPU.td @@ -190,6 +190,7 @@ let Predicates = [IsFP64bit] in { def CVT_D64_L : FFR1<0x21, 21, "cvt", "d.l", FGR64, FGR64>; } +let Predicates = [NoNaNsFPMath] in defm FABS : FFR1P_M<0x5, "abs", fabs>; defm FNEG : FFR1P_M<0x7, "neg", fneg>; defm FSQRT : FFR1P_M<0x4, "sqrt", fsqrt>; |