Index: test/cctest/compiler/test-jump-threading.cc |
diff --git a/test/cctest/compiler/test-jump-threading.cc b/test/cctest/compiler/test-jump-threading.cc |
index 74bf43d242cc1925e2277e1a2d2e2a6fc5573c9e..4365170395161ea54b00774bb87ee1cbfc5013db 100644 |
--- a/test/cctest/compiler/test-jump-threading.cc |
+++ b/test/cctest/compiler/test-jump-threading.cc |
@@ -60,14 +60,14 @@ class TestCode : public HandleAndZoneScope { |
void RedundantMoves() { |
Start(); |
sequence_.AddInstruction(Instruction::New(main_zone(), kArchNop)); |
- int index = static_cast<int>(sequence_.instructions().size()) - 1; |
+ int index = static_cast<int>(sequence_.instructions().size()) - 2; |
sequence_.AddGapMove(index, RegisterOperand::Create(13, main_zone()), |
RegisterOperand::Create(13, main_zone())); |
} |
void NonRedundantMoves() { |
Start(); |
sequence_.AddInstruction(Instruction::New(main_zone(), kArchNop)); |
- int index = static_cast<int>(sequence_.instructions().size()) - 1; |
+ int index = static_cast<int>(sequence_.instructions().size()) - 2; |
sequence_.AddGapMove(index, ImmediateOperand::Create(11, main_zone()), |
RegisterOperand::Create(11, main_zone())); |
} |