Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: runtime/vm/simulator_mips.cc

Issue 1425143003: VM: Improve and fix double negation on MIPS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/simulator_mips.cc
diff --git a/runtime/vm/simulator_mips.cc b/runtime/vm/simulator_mips.cc
index a9f12dd1e80312b854739f7b5e9535154d97d035..04e0b7fda315d35d765d8063afcea0d354971c36 100644
--- a/runtime/vm/simulator_mips.cc
+++ b/runtime/vm/simulator_mips.cc
@@ -1813,6 +1813,12 @@ void Simulator::DecodeCop1(Instr* instr) {
set_fregister_double(instr->FdField(), fs_val);
break;
}
+ case COP1_NEG: {
+ // Format(instr, "neg.'fmt 'fd, 'fs");
+ ASSERT(instr->FormatField() == FMT_D);
+ set_fregister_double(instr->FdField(), -fs_val);
+ break;
+ }
case COP1_C_F: {
ASSERT(instr->FormatField() == FMT_D); // Only D supported.
ASSERT(instr->FdField() == F0);

Powered by Google App Engine
This is Rietveld 408576698