Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 2cf469aeb889c4ef8800bf4a741859d4aad30b25..dc017ae326da6b81541da7a3dc26f8fbbbf2a882 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -860,6 +860,24 @@ void Assembler::cmpb(const Operand& op, int8_t imm8) { |
} |
+void Assembler::cmpb(const Operand& dst, Register src) { |
+ ASSERT(src.is_byte_register()); |
+ EnsureSpace ensure_space(this); |
+ last_pc_ = pc_; |
+ EMIT(0x38); |
+ emit_operand(src, dst); |
+} |
+ |
+ |
+void Assembler::cmpb(Register dst, const Operand& src) { |
+ ASSERT(dst.is_byte_register()); |
+ EnsureSpace ensure_space(this); |
+ last_pc_ = pc_; |
+ EMIT(0x3A); |
+ emit_operand(dst, src); |
+} |
+ |
+ |
void Assembler::cmpw(const Operand& op, Immediate imm16) { |
ASSERT(imm16.is_int16()); |
EnsureSpace ensure_space(this); |