aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/tests
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-15 15:23:56 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-15 15:23:56 +0100
commiteb217996098ffb5706cfe0ca8ffa4478b73ceb8e (patch)
treeb968a4edf276d5f2cf9db422f455774bf7a7061d /qtmips_machine/tests
parentab9ddf2beb8a266dd31e31178c53616b79ce4428 (diff)
downloadqtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.tar.gz
qtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.tar.bz2
qtmips-eb217996098ffb5706cfe0ca8ffa4478b73ceb8e.zip
Implement EXT instruction used in GLIBC startup.
It requires one more field to pass to ALU. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/tests')
-rw-r--r--qtmips_machine/tests/testalu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/tests/testalu.cpp b/qtmips_machine/tests/testalu.cpp
index d3d27ec..b0e7073 100644
--- a/qtmips_machine/tests/testalu.cpp
+++ b/qtmips_machine/tests/testalu.cpp
@@ -224,7 +224,7 @@ void MachineTests::alu() {
QFETCH(Registers, regs_res);
QFETCH(std::uint32_t, res);
- QCOMPARE(alu_operate(op, s , t, sa, &regs_init, discard), res);
+ QCOMPARE(alu_operate(op, s , t, sa, 0, &regs_init, discard), res);
QCOMPARE(regs_res, regs_init);
}
@@ -254,5 +254,5 @@ void MachineTests::alu_except() {
Registers regs;
// Only runtime exception is expected as any other exception is a bug
- QVERIFY_EXCEPTION_THROWN(alu_operate((enum AluOp)op, s , t, 0, &regs, discard), QtMipsExceptionRuntime);
+ QVERIFY_EXCEPTION_THROWN(alu_operate((enum AluOp)op, s , t, 0, 0, &regs, discard), QtMipsExceptionRuntime);
}