Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 4005123df7ec5445ede4aa1d955442de9af32c7e..ea68c5090f9389ed3173a4fa291c4139b3bd4257 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -1938,6 +1938,16 @@ void Assembler::cvttsd2si(Register dst, const Operand& src) { |
} |
+void Assembler::cvtsd2si(Register dst, XMMRegister src) { |
+ ASSERT(CpuFeatures::IsEnabled(SSE2)); |
+ EnsureSpace ensure_space(this); |
+ EMIT(0xF2); |
+ EMIT(0x0F); |
+ EMIT(0x2D); |
+ emit_sse_operand(dst, src); |
+} |
+ |
+ |
void Assembler::cvtsi2sd(XMMRegister dst, const Operand& src) { |
ASSERT(CpuFeatures::IsEnabled(SSE2)); |
EnsureSpace ensure_space(this); |