Index: src/x87/assembler-x87.cc |
diff --git a/src/x87/assembler-x87.cc b/src/x87/assembler-x87.cc |
index 66fda5787f99b12a5a15a2f7c9c431659bcc4b3d..506bad588a259b42a85b4d7589912f899304cad5 100644 |
--- a/src/x87/assembler-x87.cc |
+++ b/src/x87/assembler-x87.cc |
@@ -946,12 +946,20 @@ void Assembler::sbb(Register dst, const Operand& src) { |
emit_operand(dst, src); |
} |
+void Assembler::shld(Register dst, Register src, uint8_t shift) { |
+ DCHECK(is_uint5(shift)); |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x0F); |
+ EMIT(0xA4); |
+ emit_operand(src, Operand(dst)); |
+ EMIT(shift); |
+} |
-void Assembler::shld(Register dst, const Operand& src) { |
+void Assembler::shld_cl(Register dst, Register src) { |
EnsureSpace ensure_space(this); |
EMIT(0x0F); |
EMIT(0xA5); |
- emit_operand(dst, src); |
+ emit_operand(src, Operand(dst)); |
} |