mips: fix nmsub and nmadd definitions
authorDeyaun Guo <guodeyuan@tsinghua.org.cn>
Thu, 23 Jun 2011 03:35:21 +0000 (23:35 -0400)
committerDeyaun Guo <guodeyuan@tsinghua.org.cn>
Thu, 23 Jun 2011 03:35:21 +0000 (23:35 -0400)
the -/+ signs were flipped for nmsub_s, nmsub_d, and nmadd_d

src/arch/mips/isa/decoder.isa

index d97a141de4d3bce42948cc9f584d80682e731704..2185726dfefb79f7693495929260f13fd6dc9d73 100644 (file)
@@ -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);