summaryrefslogtreecommitdiff
path: root/tests/if.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/if.cc')
-rw-r--r--tests/if.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/if.cc b/tests/if.cc
index 8b30d0e..59a7890 100644
--- a/tests/if.cc
+++ b/tests/if.cc
@@ -75,7 +75,7 @@ TEST_CASE_METHOD(IFFixture, "fetch returns single instuction", "[if_pipe]")
InstrDTO *i;
i = this->fetch_through();
- REQUIRE(i->get_instr_bits() == this->p[0]);
+ REQUIRE(i->slot_A == this->p[0]);
delete i;
}
@@ -88,13 +88,13 @@ TEST_CASE_METHOD(IFFixture, "fetch returns two instuctions", "[if_pipe]")
expected_cycles = this->m_delay + this->c_delay + 2;
i = this->fetch_through();
- REQUIRE(i->get_instr_bits() == this->p[0]);
+ REQUIRE(i->slot_A == this->p[0]);
delete i;
expected_cycles += this->c_delay + 1;
i = this->fetch_cache();
- REQUIRE(i->get_instr_bits() == this->p[1]);
+ REQUIRE(i->slot_A == this->p[1]);
delete i;
}
@@ -124,7 +124,7 @@ TEST_CASE_METHOD(IFFixture, "fetch waits with old instruction", "[if_pipe]")
i = this->ct->advance(WAIT);
REQUIRE(i != nullptr);
- REQUIRE(i->get_instr_bits() == this->p[0]);
+ REQUIRE(i->slot_A == this->p[0]);
delete i;
}