From: Deyaun Guo Date: Thu, 23 Jun 2011 03:35:21 +0000 (-0400) Subject: mips: fix nmsub and nmadd definitions X-Git-Tag: stable_2012_02_02~195 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5aaddc129ef1a219a29d74e78aab28526f001963;p=gem5.git mips: fix nmsub and nmadd definitions the -/+ signs were flipped for nmsub_s, nmsub_d, and nmadd_d --- diff --git a/src/arch/mips/isa/decoder.isa b/src/arch/mips/isa/decoder.isa index d97a141de..2185726df 100644 --- a/src/arch/mips/isa/decoder.isa +++ b/src/arch/mips/isa/decoder.isa @@ -1548,7 +1548,7 @@ decode OPCODE_HI default Unknown::unknown() { 0x6: decode FUNCTION_LO { 0x0: nmadd_s({{ Fd.sf = (-1 * Fs.sf * Ft.sf) - Fr.sf; }}); - 0x1: nmadd_d({{ Fd.df = (-1 * Fs.df * Ft.df) + Fr.df; }}); + 0x1: nmadd_d({{ Fd.df = (-1 * Fs.df * Ft.df) - Fr.df; }}); 0x6: nmadd_ps({{ Fd1.sf = -((Fs1.df * Ft1.df) + Fr1.df); Fd2.sf = -((Fs2.df * Ft2.df) + Fr2.df); @@ -1556,8 +1556,8 @@ decode OPCODE_HI default Unknown::unknown() { } 0x7: decode FUNCTION_LO { - 0x0: nmsub_s({{ Fd.sf = (-1 * Fs.sf * Ft.sf) - Fr.sf; }}); - 0x1: nmsub_d({{ Fd.df = (-1 * Fs.df * Ft.df) - Fr.df; }}); + 0x0: nmsub_s({{ Fd.sf = (-1 * Fs.sf * Ft.sf) + Fr.sf; }}); + 0x1: nmsub_d({{ Fd.df = (-1 * Fs.df * Ft.df) + Fr.df; }}); 0x6: nmsub_ps({{ Fd1.sf = -((Fs1.df * Ft1.df) - Fr1.df); Fd2.sf = -((Fs2.df * Ft2.df) - Fr2.df);