Commit 6f95c0b1 authored by yangguo@chromium.org's avatar yangguo@chromium.org

[x64] add disasm for two fp instructions

BUG=
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/146583002

Patch from Weiliang Lin <weiliang.lin@intel.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19022 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b6625976
...@@ -934,6 +934,7 @@ int DisassemblerX64::RegisterFPUInstruction(int escape_opcode, ...@@ -934,6 +934,7 @@ int DisassemblerX64::RegisterFPUInstruction(int escape_opcode,
case 0xF5: mnem = "fprem1"; break; case 0xF5: mnem = "fprem1"; break;
case 0xF7: mnem = "fincstp"; break; case 0xF7: mnem = "fincstp"; break;
case 0xF8: mnem = "fprem"; break; case 0xF8: mnem = "fprem"; break;
case 0xFC: mnem = "frndint"; break;
case 0xFD: mnem = "fscale"; break; case 0xFD: mnem = "fscale"; break;
case 0xFE: mnem = "fsin"; break; case 0xFE: mnem = "fsin"; break;
case 0xFF: mnem = "fcos"; break; case 0xFF: mnem = "fcos"; break;
...@@ -956,6 +957,8 @@ int DisassemblerX64::RegisterFPUInstruction(int escape_opcode, ...@@ -956,6 +957,8 @@ int DisassemblerX64::RegisterFPUInstruction(int escape_opcode,
has_register = true; has_register = true;
} else if (modrm_byte == 0xE2) { } else if (modrm_byte == 0xE2) {
mnem = "fclex"; mnem = "fclex";
} else if (modrm_byte == 0xE3) {
mnem = "fninit";
} else { } else {
UnimplementedInstruction(); UnimplementedInstruction();
} }
......
...@@ -349,6 +349,8 @@ TEST(DisasmIa320) { ...@@ -349,6 +349,8 @@ TEST(DisasmIa320) {
__ fdivp(3); __ fdivp(3);
__ fcompp(); __ fcompp();
__ fwait(); __ fwait();
__ frndint();
__ fninit();
__ nop(); __ nop();
// SSE instruction // SSE instruction
......
...@@ -330,6 +330,8 @@ TEST(DisasmX64) { ...@@ -330,6 +330,8 @@ TEST(DisasmX64) {
__ fdivp(3); __ fdivp(3);
__ fcompp(); __ fcompp();
__ fwait(); __ fwait();
__ frndint();
__ fninit();
__ nop(); __ nop();
// SSE instruction // SSE instruction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment