Index: test/unittests/compiler/instruction-selector-unittest.cc |
diff --git a/test/unittests/compiler/instruction-selector-unittest.cc b/test/unittests/compiler/instruction-selector-unittest.cc |
index 76bfe2217183f1b2a270c290f6bf1d73bc910fda..e14382e914a214378c81a5f52a3886ba4ee3f798 100644 |
--- a/test/unittests/compiler/instruction-selector-unittest.cc |
+++ b/test/unittests/compiler/instruction-selector-unittest.cc |
@@ -127,7 +127,8 @@ |
if (!operand->IsUnallocated()) return false; |
const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); |
if (!unallocated->HasFixedRegisterPolicy()) return false; |
- return unallocated->fixed_register_index() == reg.code(); |
+ const int index = Register::ToAllocationIndex(reg); |
+ return unallocated->fixed_register_index() == index; |
} |