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

Unified Diff: runtime/vm/simulator_arm.cc

Issue 606893002: Avoids vmovsr on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | « runtime/vm/intermediate_language_arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_arm.cc
===================================================================
--- runtime/vm/simulator_arm.cc (revision 40683)
+++ runtime/vm/simulator_arm.cc (working copy)
@@ -2824,6 +2824,19 @@
// Format(instr, "vmovr'cond 'rd, 'sn");
set_register(rd, get_sregister_bits(sn));
}
+ } else if ((instr->Bits(22, 3) == 0) && (instr->Bit(20) == 0) &&
+ (instr->Bit(8) == 1) && (instr->Bits(5, 2) == 0)) {
+ DRegister dn = instr->DnField();
+ Register rd = instr->RdField();
+ if (instr->Bit(21) == 0) {
+ // Format(instr, "vmovd'cond 'dd[0], 'rd");
+ SRegister sd = EvenSRegisterOf(dn);
+ set_sregister_bits(sd, get_register(rd));
+ } else {
+ // Format(instr, "vmovd'cond 'dd[1], 'rd");
+ SRegister sd = OddSRegisterOf(dn);
+ set_sregister_bits(sd, get_register(rd));
+ }
} else if ((instr->Bits(20, 4) == 0xf) && (instr->Bit(8) == 0) &&
(instr->Bits(12, 4) == 0xf)) {
// Format(instr, "vmstat'cond");
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698