Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 073fcbe8e944902ac096b63f91b976bd3acd1ea0..35b6baf148ff2d9aeff1bbd8edcc10c898bf9227 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -199,6 +199,10 @@ void Assembler::emit_optional_rex_32(Register rm_reg) { |
if (rm_reg.high_bit()) emit(0x41); |
} |
+void Assembler::emit_optional_rex_32(XMMRegister reg) { |
+ byte rex_bits = (reg.code() & 0x8) >> 1; |
+ if (rex_bits != 0) emit(0x40 | rex_bits); |
+} |
void Assembler::emit_optional_rex_32(const Operand& op) { |
if (op.rex_ != 0) emit(0x40 | op.rex_); |