Revision: 23109
Author:   [email protected]
Date:     Wed Aug 13 14:43:22 2014 UTC
Log:      MIPS: Fix DCHECK failure in simulator for fp32 mode.

TEST=mjsunit tests in debug
BUG=
[email protected]

Review URL: https://codereview.chromium.org/467203002
http://code.google.com/p/v8/source/detail?r=23109

Modified:
 /branches/bleeding_edge/src/mips/simulator-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/simulator-mips.cc Tue Aug 12 19:04:15 2014 UTC +++ /branches/bleeding_edge/src/mips/simulator-mips.cc Wed Aug 13 14:43:22 2014 UTC
@@ -2290,7 +2290,7 @@
                 }
                 set_fpu_register_word(fd_reg, result);
                 if (set_fcsr_round_error(fs, rounded)) {
-                  set_fpu_register(fd_reg, kFPUInvalidResult);
+                  set_fpu_register_word(fd_reg, kFPUInvalidResult);
                 }
               }
               break;
@@ -2300,7 +2300,7 @@
                 int32_t result = static_cast<int32_t>(rounded);
                 set_fpu_register_word(fd_reg, result);
                 if (set_fcsr_round_error(fs, rounded)) {
-                  set_fpu_register(fd_reg, kFPUInvalidResult);
+                  set_fpu_register_word(fd_reg, kFPUInvalidResult);
                 }
               }
               break;
@@ -2310,7 +2310,7 @@
                 int32_t result = static_cast<int32_t>(rounded);
                 set_fpu_register_word(fd_reg, result);
                 if (set_fcsr_round_error(fs, rounded)) {
-                  set_fpu_register(fd_reg, kFPUInvalidResult);
+                  set_fpu_register_word(fd_reg, kFPUInvalidResult);
                 }
               }
               break;
@@ -2320,7 +2320,7 @@
                 int32_t result = static_cast<int32_t>(rounded);
                 set_fpu_register_word(fd_reg, result);
                 if (set_fcsr_round_error(fs, rounded)) {
-                  set_fpu_register(fd_reg, kFPUInvalidResult);
+                  set_fpu_register_word(fd_reg, kFPUInvalidResult);
                 }
               }
               break;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to