Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 6e12458f963a81a66597ad5d319d91fdacc1e521..dfd51a4bedfc4990778778e3b36bbc2bebb77e14 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -935,6 +935,14 @@ void Assembler::emit_imul(Register src, int size) { |
} |
+void Assembler::emit_imul(const Operand& src, int size) { |
+ EnsureSpace ensure_space(this); |
+ emit_rex(src, size); |
+ emit(0xF7); |
+ emit_operand(0x5, src); |
+} |
+ |
+ |
void Assembler::emit_imul(Register dst, Register src, int size) { |
EnsureSpace ensure_space(this); |
emit_rex(dst, src, size); |
@@ -1499,7 +1507,23 @@ void Assembler::emit_repmovs(int size) { |
} |
-void Assembler::mul(Register src) { |
+void Assembler::mull(Register src) { |
+ EnsureSpace ensure_space(this); |
+ emit_optional_rex_32(src); |
+ emit(0xF7); |
+ emit_modrm(0x4, src); |
+} |
+ |
+ |
+void Assembler::mull(const Operand& src) { |
+ EnsureSpace ensure_space(this); |
+ emit_optional_rex_32(src); |
+ emit(0xF7); |
+ emit_operand(0x4, src); |
+} |
+ |
+ |
+void Assembler::mulq(Register src) { |
EnsureSpace ensure_space(this); |
emit_rex_64(src); |
emit(0xF7); |