diff options
Diffstat (limited to 'deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc b/deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc index f9380ce8cc..5769a980ee 100644 --- a/deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc +++ b/deps/v8/test/unittests/compiler/riscv32/instruction-selector-riscv32-unittest.cc @@ -910,8 +910,8 @@ TEST_P(InstructionSelectorMemoryAccessImmTest, StoreWithImmediateIndex) { EXPECT_EQ(memacc.store_opcode, s[0]->arch_opcode()); EXPECT_EQ(kMode_MRI, s[0]->addressing_mode()); ASSERT_EQ(3U, s[0]->InputCount()); - ASSERT_EQ(InstructionOperand::IMMEDIATE, s[0]->InputAt(1)->kind()); - EXPECT_EQ(index, s.ToInt32(s[0]->InputAt(1))); + ASSERT_EQ(InstructionOperand::IMMEDIATE, s[0]->InputAt(2)->kind()); + EXPECT_EQ(index, s.ToInt32(s[0]->InputAt(2))); EXPECT_EQ(0U, s[0]->OutputCount()); } } @@ -928,10 +928,10 @@ TEST_P(InstructionSelectorMemoryAccessImmTest, StoreZero) { EXPECT_EQ(memacc.store_opcode, s[0]->arch_opcode()); EXPECT_EQ(kMode_MRI, s[0]->addressing_mode()); ASSERT_EQ(3U, s[0]->InputCount()); - ASSERT_EQ(InstructionOperand::IMMEDIATE, s[0]->InputAt(1)->kind()); - EXPECT_EQ(index, s.ToInt32(s[0]->InputAt(1))); ASSERT_EQ(InstructionOperand::IMMEDIATE, s[0]->InputAt(2)->kind()); - EXPECT_EQ(0, s.ToInt64(s[0]->InputAt(2))); + EXPECT_EQ(index, s.ToInt32(s[0]->InputAt(2))); + ASSERT_EQ(InstructionOperand::IMMEDIATE, s[0]->InputAt(0)->kind()); + EXPECT_EQ(0, s.ToInt64(s[0]->InputAt(0))); EXPECT_EQ(0U, s[0]->OutputCount()); } } |