Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 41bf297b38799799e5301bd307c08c3dcaa7ea82..b6a28fca9efff62ef414a5857d55e86fd61f29db 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -2058,6 +2058,10 @@ void Assembler::testq(Register dst, Register src) { |
void Assembler::testq(Register dst, Immediate mask) { |
+ if (is_uint8(mask.value_)) { |
+ testb(dst, mask); |
+ return; |
+ } |
EnsureSpace ensure_space(this); |
if (dst.is(rax)) { |
emit_rex_64(); |