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

Unified Diff: runtime/vm/assembler_mips.h

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
« no previous file with comments | « no previous file | runtime/vm/assembler_mips_test.cc » ('j') | tests/language/nan_identical_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
diff --git a/runtime/vm/assembler_mips.h b/runtime/vm/assembler_mips.h
index 531611032dff834a6af7e8a3f0f5b0d143b274d5..e075dd3bd4a013ef691ef69adb2901eb05d8106c 100644
--- a/runtime/vm/assembler_mips.h
+++ b/runtime/vm/assembler_mips.h
@@ -762,6 +762,12 @@ class Assembler : public ValueObject {
EmitRType(SPECIAL, rs, rt, R0, 0, MULTU);
}
+ void negd(DRegister dd, DRegister ds) {
+ FRegister fd = static_cast<FRegister>(dd * 2);
+ FRegister fs = static_cast<FRegister>(ds * 2);
+ EmitFpuRType(COP1, FMT_D, F0, fs, fd, COP1_NEG);
+ }
+
void nop() {
Emit(Instr::kNopInstruction);
}
« no previous file with comments | « no previous file | runtime/vm/assembler_mips_test.cc » ('j') | tests/language/nan_identical_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698