aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/tests
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-04-08 13:44:03 +0200
committerKarel Kočí <cynerd@email.cz>2018-04-08 13:44:03 +0200
commit2add5df6e7f028e9edafecca7953505b52d73253 (patch)
tree882e63eaa940f8868f0f5f8fb9975b00ee674fd7 /qtmips_machine/tests
parent179a1346a833d0039de5b0570f27045511b30dc4 (diff)
downloadqtmips-2add5df6e7f028e9edafecca7953505b52d73253.tar.gz
qtmips-2add5df6e7f028e9edafecca7953505b52d73253.tar.bz2
qtmips-2add5df6e7f028e9edafecca7953505b52d73253.zip
Implement LUI
Diffstat (limited to 'qtmips_machine/tests')
-rw-r--r--qtmips_machine/tests/testcore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtmips_machine/tests/testcore.cpp b/qtmips_machine/tests/testcore.cpp
index 30cf3c7..5e278b5 100644
--- a/qtmips_machine/tests/testcore.cpp
+++ b/qtmips_machine/tests/testcore.cpp
@@ -122,6 +122,10 @@ static void core_regs_data() {
QTest::newRow("NOR") << Instruction(0, 24, 25, 26, 0, 39) \
<< regs_init \
<< regs_res;
+ regs_res.write_gp(26, 0xf00f0000);
+ QTest::newRow("LUI") << Instruction(15, 0, 26, 0xf00f) \
+ << regs_init \
+ << regs_res;
}
// Move instructions