aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/tests
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/tests')
-rw-r--r--qtmips_machine/tests/testcore.cpp4
-rw-r--r--qtmips_machine/tests/testmemory.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/qtmips_machine/tests/testcore.cpp b/qtmips_machine/tests/testcore.cpp
index 86a9726..53b6304 100644
--- a/qtmips_machine/tests/testcore.cpp
+++ b/qtmips_machine/tests/testcore.cpp
@@ -365,13 +365,13 @@ static void core_mem_data() {
Registers regs;
regs.write_gp(1, 0x22);
Registers regs_res(regs);
- regs_res.write_gp(21, 0x80000023);
+ regs_res.write_gp(21, 0xFFFFFFA3);
QTest::newRow("LB") << Instruction(32, 1, 21, 0x2) \
<< regs \
<< regs_res \
<< mem \
<< mem;
- regs_res.write_gp(21, 0x80002324);
+ regs_res.write_gp(21, 0xFFFFA324);
QTest::newRow("LH") << Instruction(33, 1, 21, 0x2) \
<< regs \
<< regs_res \
diff --git a/qtmips_machine/tests/testmemory.cpp b/qtmips_machine/tests/testmemory.cpp
index d24ec54..6e7d23a 100644
--- a/qtmips_machine/tests/testmemory.cpp
+++ b/qtmips_machine/tests/testmemory.cpp
@@ -179,9 +179,9 @@ void MachineTests::memory_read_ctl_data() {
QTest::newRow("none") << AC_NONE \
<< (std::uint32_t)0;
QTest::newRow("byte") << AC_BYTE \
- << (std::uint32_t)0x80000023;
+ << (std::uint32_t)0xFFFFFFA3;
QTest::newRow("halfword") << AC_HALFWORD \
- << (std::uint32_t)0x80002324;
+ << (std::uint32_t)0xFFFFA324;
QTest::newRow("word") << AC_WORD \
<< (std::uint32_t)0xA3242526;
QTest::newRow("byte-unsigned") << AC_BYTE_UNSIGNED \