summaryrefslogtreecommitdiff
path: root/tests/id.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-17 19:56:53 -0400
committerbd <bdunahu@operationnull.com>2025-04-17 19:56:53 -0400
commit984ce6eef2e439955ff991f90c2b654be7c6c3f3 (patch)
treee936781b52c6846d87c98381ed47bc7da7c43bff /tests/id.cc
parent082200691a5d95f716a9d1dc127c858322cdff37 (diff)
Add option to turn off pipeline
Diffstat (limited to 'tests/id.cc')
-rw-r--r--tests/id.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/id.cc b/tests/id.cc
index 6dcb124..321c013 100644
--- a/tests/id.cc
+++ b/tests/id.cc
@@ -184,8 +184,9 @@ TEST_CASE_METHOD(IDFixture, "Parse arbitrary j-type # two", "[id]")
t = this->encode_J_type(0xBBCCF, 0b10101, 0b0011, 0b10);
i = this->decode_bits(t);
+ t = 0xFFFBBCCF;
CHECK(i->get_s1() == 0x00000000); // registers are empty
- CHECK(i->get_s2() == 0xFFFBBCCF);
+ CHECK(i->get_s2() == t);
CHECK(i->get_mnemonic() == JAL);
delete i;