Index: src/x64/disasm-x64.cc |
=================================================================== |
--- src/x64/disasm-x64.cc (revision 6336) |
+++ src/x64/disasm-x64.cc (working copy) |
@@ -1113,9 +1113,11 @@ |
} else if (opcode == 0x2C) { |
// CVTTSS2SI: |
// Convert with truncation scalar single-precision FP to dword integer. |
- // Assert that mod is not 3, so source is memory, not an XMM register. |
- ASSERT_NE(0xC0, *current & 0xC0); |
- current += PrintOperands("cvttss2si", REG_OPER_OP_ORDER, current); |
+ int mod, regop, rm; |
+ get_modrm(*current, &mod, ®op, &rm); |
+ AppendToBuffer("cvttss2si%c %s,", |
+ operand_size_code(), NameOfCPURegister(regop)); |
+ current += PrintRightXMMOperand(current); |
} else if (opcode == 0x5A) { |
// CVTSS2SD: |
// Convert scalar single-precision FP to scalar double-precision FP. |