Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 2977e9fc3a11479794d06b097032ef8772d82429..e22688334da178c9132934bbb70f761954c53d09 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -841,7 +841,7 @@ void Assembler::cmpb(Register reg, const Operand& op) { |
void Assembler::cmpw(const Operand& op, Immediate imm16) { |
- DCHECK(imm16.is_int16()); |
+ DCHECK(imm16.is_int16() || imm16.is_uint16()); |
EnsureSpace ensure_space(this); |
EMIT(0x66); |
EMIT(0x81); |