Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index a846c934508ac624c708b19583716a0d2c162c43..2ac3088020bbd5d76577813dfa7c84f644b46ee3 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -803,6 +803,11 @@ void Assembler::cmp(Register reg, const Operand& op) { |
emit_operand(reg, op); |
} |
+void Assembler::cmp(const Operand& op, Register reg) { |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x39); |
+ emit_operand(reg, op); |
+} |
void Assembler::cmp(const Operand& op, const Immediate& imm) { |
EnsureSpace ensure_space(this); |