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

Unified Diff: src/x87/disasm-x87.cc

Issue 442003002: Fix disassembly of sar(_, imm8) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x87/disasm-x87.cc
diff --git a/src/x87/disasm-x87.cc b/src/x87/disasm-x87.cc
index 51afa7d10c781d9c92f8eea05acfa85162d5b43c..53a8c2906703668e9622611fabbbce8d5b551426 100644
--- a/src/x87/disasm-x87.cc
+++ b/src/x87/disasm-x87.cc
@@ -606,7 +606,7 @@ int DisassemblerX87::D1D3C1Instruction(byte* data) {
if (op == 0xD1) {
imm8 = 1;
} else if (op == 0xC1) {
- imm8 = *(data + 2);
+ imm8 = *(data + 1);
count++;
} else if (op == 0xD3) {
// Shift/rotate by cl.
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698