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

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

Issue 1780193003: [turbofan] Byte and word memory operands in x64 cmp/test. Fixes arithmetic_op_8 in assembler-x64.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 9 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
Index: src/x64/assembler-x64.h
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h
index 0ce714db0915fa077e943853ede217ce6c69babc..40822a176cc2f0a865c06fef70d4752532d53d24 100644
--- a/src/x64/assembler-x64.h
+++ b/src/x64/assembler-x64.h
@@ -771,6 +771,10 @@ class Assembler : public AssemblerBase {
arithmetic_op_16(0x39, src, dst);
}
+ void testb(Register reg, const Operand& op) { testb(op, reg); }
+
+ void testw(Register reg, const Operand& op) { testw(op, reg); }
+
void andb(Register dst, Immediate src) {
immediate_arithmetic_op_8(0x4, dst, src);
}
@@ -846,6 +850,11 @@ class Assembler : public AssemblerBase {
void testb(const Operand& op, Immediate mask);
void testb(const Operand& op, Register reg);
+ void testw(Register dst, Register src);
+ void testw(Register reg, Immediate mask);
+ void testw(const Operand& op, Immediate mask);
+ void testw(const Operand& op, Register reg);
+
// Bit operations.
void bt(const Operand& dst, Register src);
void bts(const Operand& dst, Register src);

Powered by Google App Engine
This is Rietveld 408576698