Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 58d473920efcaee99f61db56bb4b01463d1f0b64..2bb92d7e25739f09b35b8c58409e6882ddc85b77 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -2738,6 +2738,28 @@ void Assembler::cvtsd2ss(XMMRegister dst, XMMRegister src) { |
} |
+void Assembler::cvtsd2si(Register dst, XMMRegister src) { |
+ EnsureSpace ensure_space(this); |
+ last_pc_ = pc_; |
+ emit(0xF2); |
+ emit_optional_rex_32(dst, src); |
+ emit(0x0F); |
+ emit(0x2D); |
+ emit_sse_operand(dst, src); |
+} |
+ |
+ |
+void Assembler::cvtsd2siq(Register dst, XMMRegister src) { |
+ EnsureSpace ensure_space(this); |
+ last_pc_ = pc_; |
+ emit(0xF2); |
+ emit_rex_64(dst, src); |
+ emit(0x0F); |
+ emit(0x2D); |
+ emit_sse_operand(dst, src); |
+} |
+ |
+ |
void Assembler::addsd(XMMRegister dst, XMMRegister src) { |
EnsureSpace ensure_space(this); |
last_pc_ = pc_; |