aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/tests/testalu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine/tests/testalu.cpp')
-rw-r--r--qtmips_machine/tests/testalu.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/qtmips_machine/tests/testalu.cpp b/qtmips_machine/tests/testalu.cpp
index b45a317..603a610 100644
--- a/qtmips_machine/tests/testalu.cpp
+++ b/qtmips_machine/tests/testalu.cpp
@@ -12,6 +12,20 @@ void MachineTests::alu_data() {
QTest::addColumn<std::uint32_t>("res");
// TODO SLL-SRAV
+ QTest::newRow("MOVZ") << ALU_OP_MOVZ \
+ << (std::uint32_t)22 \
+ << (std::uint32_t)0 \
+ << (std::uint8_t)0 \
+ << Registers() \
+ << Registers() \
+ << (std::uint32_t)22;
+ QTest::newRow("MOVN") << ALU_OP_MOVN \
+ << (std::uint32_t)22 \
+ << (std::uint32_t)1 \
+ << (std::uint8_t)0 \
+ << Registers() \
+ << Registers() \
+ << (std::uint32_t)22;
{
Registers init;
init.write_hi_lo(true, 42);