diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-13 00:46:23 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-13 00:46:23 +0000 |
commit | 2f3e06399a703a20f544a0029a11e9a484d4cead (patch) | |
tree | 3ca4e642666b0b1bc82359c8797bf6b3e41fb82f /lib/Target/Mips/MipsInstrFPU.td | |
parent | 1c88a8d978e5cbcbd270f7a742bfe690ed798e0e (diff) | |
download | external_llvm-2f3e06399a703a20f544a0029a11e9a484d4cead.zip external_llvm-2f3e06399a703a20f544a0029a11e9a484d4cead.tar.gz external_llvm-2f3e06399a703a20f544a0029a11e9a484d4cead.tar.bz2 |
[mips] Set isCommutable flag in a more explicit way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFPU.td')
-rw-r--r-- | lib/Target/Mips/MipsInstrFPU.td | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsInstrFPU.td b/lib/Target/Mips/MipsInstrFPU.td index 5fb2b92..44c4d7a 100644 --- a/lib/Target/Mips/MipsInstrFPU.td +++ b/lib/Target/Mips/MipsInstrFPU.td @@ -137,8 +137,7 @@ multiclass FFR1P_M<bits<6> funct, string opstr, SDNode OpNode> { } } -multiclass FFR2P_M<bits<6> funct, string opstr, SDNode OpNode, bit isComm = 0> { - let isCommutable = isComm in { +multiclass FFR2P_M<bits<6> funct, string opstr, SDNode OpNode> { def _D32 : FFR2P<funct, 17, opstr, AFGR64, OpNode>, Requires<[NotFP64bit, HasStdEnc]>; def _D64 : FFR2P<funct, 17, opstr, FGR64, OpNode>, @@ -146,7 +145,6 @@ multiclass FFR2P_M<bits<6> funct, string opstr, SDNode OpNode, bit isComm = 0> { let DecoderNamespace = "Mips64"; } } -} // FP madd/msub/nmadd/nmsub instruction classes. class FMADDSUB<bits<3> funct, bits<3> fmt, string opstr, @@ -325,11 +323,11 @@ let Predicates = [HasMips64, HasStdEnc], /// Floating-point Aritmetic def FADD_S : FFR2P<0x00, 16, "add.s", FGR32, fadd>, IsCommutable; -defm FADD : FFR2P_M<0x00, "add.d", fadd, 1>; +defm FADD : FFR2P_M<0x00, "add.d", fadd>, IsCommutable; def FDIV_S : FFR2P<0x03, 16, "div.s", FGR32, fdiv>; defm FDIV : FFR2P_M<0x03, "div.d", fdiv>; def FMUL_S : FFR2P<0x02, 16, "mul.s", FGR32, fmul>, IsCommutable; -defm FMUL : FFR2P_M<0x02, "mul.d", fmul, 1>; +defm FMUL : FFR2P_M<0x02, "mul.d", fmul>, IsCommutable; def FSUB_S : FFR2P<0x01, 16, "sub.s", FGR32, fsub>; defm FSUB : FFR2P_M<0x01, "sub.d", fsub>; |