Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 5dddcf8fbd2fe092aa4ff6ba15c0b5605311143b..5f8fb6818eb89cf8dd8e79be4beaf051e1f57bbb 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -2095,14 +2095,14 @@ void Assembler::testw(Register reg, Immediate mask) { |
emit(0x66); |
if (reg.is(rax)) { |
emit(0xA9); |
- emit(mask.value_); |
+ emitw(mask.value_); |
} else { |
if (reg.low_bits() == 4) { |
emit_rex_32(reg); |
} |
emit(0xF7); |
emit_modrm(0x0, reg); |
- emit(mask.value_); |
+ emitw(mask.value_); |
} |
} |
@@ -2113,7 +2113,7 @@ void Assembler::testw(const Operand& op, Immediate mask) { |
emit_optional_rex_32(rax, op); |
emit(0xF7); |
emit_operand(rax, op); |
- emit(mask.value_); |
+ emitw(mask.value_); |
} |
void Assembler::testw(const Operand& op, Register reg) { |