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

Unified Diff: runtime/vm/disassembler_arm.cc

Issue 14784011: Fixes for integer division on ARM hardware so that assembler tests pass. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/disassembler_arm.cc
===================================================================
--- runtime/vm/disassembler_arm.cc (revision 22334)
+++ runtime/vm/disassembler_arm.cc (working copy)
@@ -601,7 +601,7 @@
break;
}
case 7: {
- if (instr->Bits(21, 2) == 0x1) {
+ if ((instr->Bits(21, 2) == 0x1) && (instr->ConditionField() == AL)) {
Format(instr, "bkpt'cond #'imm12_4");
regis 2013/05/07 17:14:35 Remove 'cond.
zra 2013/05/07 17:50:18 Done.
} else {
// Format(instr, "smc'cond");
@@ -861,9 +861,9 @@
void ARMDecoder::DecodeType3(Instr* instr) {
if (instr->IsDivision()) {
if (instr->Bit(21)) {
- Format(instr, "udiv'cond 'rd, 'rn, 'rm");
+ Format(instr, "udiv'cond 'rn, 'rs, 'rm");
} else {
- Format(instr, "sdiv'cond 'rd, 'rn, 'rm");
+ Format(instr, "sdiv'cond 'rn, 'rs, 'rm");
}
return;
}

Powered by Google App Engine
This is Rietveld 408576698