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

Unified Diff: runtime/vm/simulator_mips.cc

Issue 13228002: First two codegen tests passing on SIMMIPS (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
===================================================================
--- runtime/vm/simulator_mips.cc (revision 20565)
+++ runtime/vm/simulator_mips.cc (working copy)
@@ -1030,6 +1030,13 @@
DoBranch(instr, rs_val >= 0, false);
break;
}
+ case BGEZAL: {
+ int32_t rs_val = get_register(instr->RsField());
+ // Return address is one after the delay slot.
+ set_register(RA, pc_ + (2*Instr::kInstrSize));
+ DoBranch(instr, rs_val >= 0, false);
+ break;
+ }
case BGEZL: {
// Format(instr, "bgezl 'rs, 'dest");
int32_t rs_val = get_register(instr->RsField());

Powered by Google App Engine
This is Rietveld 408576698