Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: src/x64/assembler-x64.cc

Issue 1962563003: [x64] Fix testw with immediates. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-assembler-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | test/cctest/test-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698