Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 1dba9b031e59fad60c7542996d71b737cd3ccdbd..4f8d5b1be13e443e77e2fbba613b550eaa314acb 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -2629,6 +2629,16 @@ void Assembler::cvttsd2siq(Register dst, XMMRegister src) { |
} |
+void Assembler::cvttsd2siq(Register dst, const Operand& src) { |
+ EnsureSpace ensure_space(this); |
+ emit(0xF2); |
+ emit_rex_64(dst, src); |
+ emit(0x0F); |
+ emit(0x2C); |
+ emit_sse_operand(dst, src); |
+} |
+ |
+ |
void Assembler::cvtlsi2sd(XMMRegister dst, const Operand& src) { |
EnsureSpace ensure_space(this); |
emit(0xF2); |
@@ -2900,6 +2910,12 @@ void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { |
} |
+void Assembler::emit_sse_operand(Register reg, const Operand& adr) { |
+ Register ireg = {reg.code()}; |
+ emit_operand(ireg, adr); |
+} |
+ |
+ |
void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { |
emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); |
} |