Index: src/ia32/disasm-ia32.cc |
diff --git a/src/ia32/disasm-ia32.cc b/src/ia32/disasm-ia32.cc |
index c43f11c00e966590ca3c92f0ac75ab0a45a3ca40..10a0cc59e779aa0791018bdd39b3fde162339aa2 100644 |
--- a/src/ia32/disasm-ia32.cc |
+++ b/src/ia32/disasm-ia32.cc |
@@ -743,7 +743,14 @@ int DisassemblerIA32::RegisterFPUInstruction(int escape_opcode, |
switch (escape_opcode) { |
case 0xD8: |
- UnimplementedInstruction(); |
+ has_register = true; |
+ switch (modrm_byte & 0xF8) { |
+ case 0xC0: mnem = "fadd_i"; break; |
+ case 0xE0: mnem = "fsub_i"; break; |
+ case 0xC8: mnem = "fmul_i"; break; |
+ case 0xF0: mnem = "fdiv_i"; break; |
+ default: UnimplementedInstruction(); |
+ } |
break; |
case 0xD9: |
@@ -767,6 +774,7 @@ int DisassemblerIA32::RegisterFPUInstruction(int escape_opcode, |
case 0xEE: mnem = "fldz"; break; |
case 0xF0: mnem = "f2xm1"; break; |
case 0xF1: mnem = "fyl2x"; break; |
+ case 0xF4: mnem = "fxtract"; break; |
case 0xF5: mnem = "fprem1"; break; |
case 0xF7: mnem = "fincstp"; break; |
case 0xF8: mnem = "fprem"; break; |
@@ -815,6 +823,7 @@ int DisassemblerIA32::RegisterFPUInstruction(int escape_opcode, |
has_register = true; |
switch (modrm_byte & 0xF8) { |
case 0xC0: mnem = "ffree"; break; |
+ case 0xD0: mnem = "fst"; break; |
case 0xD8: mnem = "fstp"; break; |
default: UnimplementedInstruction(); |
} |
@@ -1449,6 +1458,7 @@ int DisassemblerIA32::InstructionDecode(v8::internal::Vector<char> out_buffer, |
data += D1D3C1Instruction(data); |
break; |
+ case 0xD8: // fall through |
case 0xD9: // fall through |
case 0xDA: // fall through |
case 0xDB: // fall through |