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

Unified Diff: runtime/vm/object_mips_test.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/object_mips_test.cc
===================================================================
--- runtime/vm/object_mips_test.cc (revision 29964)
+++ runtime/vm/object_mips_test.cc (working copy)
@@ -19,13 +19,13 @@
// This is used to test Code and Instruction object creation.
void GenerateIncrement(Assembler* assembler) {
__ Push(ZR);
- __ lw(TMP1, Address(SP, 0));
- __ addiu(TMP1, TMP1, Immediate(1));
- __ sw(TMP1, Address(SP, 0));
- __ lw(TMP1, Address(SP, 0));
- __ addiu(TMP1, TMP1, Immediate(1));
+ __ lw(TMP, Address(SP, 0));
+ __ addiu(TMP, TMP, Immediate(1));
+ __ sw(TMP, Address(SP, 0));
+ __ lw(TMP, Address(SP, 0));
+ __ addiu(TMP, TMP, Immediate(1));
__ Pop(V0);
- __ mov(V0, TMP1);
+ __ mov(V0, TMP);
__ Ret();
}

Powered by Google App Engine
This is Rietveld 408576698