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

Unified Diff: runtime/vm/instructions_mips.cc

Issue 59613005: Merge (x & y) == 0 pattern to emit a single test instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/instructions_mips.cc
===================================================================
--- runtime/vm/instructions_mips.cc (revision 29964)
+++ runtime/vm/instructions_mips.cc (working copy)
@@ -180,9 +180,9 @@
uint16_t target_lo = target_address & 0xffff;
uint16_t target_hi = target_address >> 16;
- lui->SetImmInstrBits(LUI, ZR, TMP1, target_hi);
- ori->SetImmInstrBits(ORI, TMP1, TMP1, target_lo);
- jr->SetSpecialInstrBits(JALR, TMP1, ZR, RA);
+ lui->SetImmInstrBits(LUI, ZR, TMP, target_hi);
+ ori->SetImmInstrBits(ORI, TMP, TMP, target_lo);
+ jr->SetSpecialInstrBits(JALR, TMP, ZR, RA);
nop->SetInstructionBits(Instr::kNopInstruction);
ASSERT(kFixedLengthInBytes == 4 * Instr::kInstrSize);

Powered by Google App Engine
This is Rietveld 408576698