Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index fca630fc6d6e1fcbf1a91e4218f1f50b7b50b55b..bfe7c6264986e19f0b57dd87cdbe9ea5abc231a2 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -60,8 +60,7 @@ class X64OperandGenerator final : public OperandGenerator { |
switch (opcode) { |
case kX64Cmp: |
case kX64Test: |
- return rep == MachineRepresentation::kWord64 || |
- rep == MachineRepresentation::kTagged; |
+ return rep == MachineRepresentation::kWord64 || IsAnyTagged(rep); |
case kX64Cmp32: |
case kX64Test32: |
return rep == MachineRepresentation::kWord32; |