From 2add5df6e7f028e9edafecca7953505b52d73253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 8 Apr 2018 13:44:03 +0200 Subject: Implement LUI --- qtmips_machine/tests/testcore.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qtmips_machine/tests') 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 -- cgit v1.2.3