diff options
author | Karel Kočí <cynerd@email.cz> | 2018-02-14 13:40:48 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-02-14 13:40:48 +0100 |
commit | a3faaa12e433a8ac4d82b481c276eb15039dc140 (patch) | |
tree | 1cf792b0a61dc67f7f2b4763d38f0cf78378f53f /qtmips_machine/tests | |
parent | b416eb2efdc82a1cd9b1b69b7f335750a725f738 (diff) | |
download | qtmips-a3faaa12e433a8ac4d82b481c276eb15039dc140.tar.gz qtmips-a3faaa12e433a8ac4d82b481c276eb15039dc140.tar.bz2 qtmips-a3faaa12e433a8ac4d82b481c276eb15039dc140.zip |
Fix signextend in core
Diffstat (limited to 'qtmips_machine/tests')
-rw-r--r-- | qtmips_machine/tests/testcore.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/tests/testcore.cpp b/qtmips_machine/tests/testcore.cpp index c38eb26..3a1ce48 100644 --- a/qtmips_machine/tests/testcore.cpp +++ b/qtmips_machine/tests/testcore.cpp @@ -231,6 +231,9 @@ static void core_jmp_data() { QTest::newRow("BEQ") << Instruction(4, 14, 16, 61) \ << regs \ << regs.read_pc() + 4 + (61 << 2); + QTest::newRow("BEQ-BACK") << Instruction(4, 14, 16, -4) \ + << regs \ + << regs.read_pc() + 4 - 16; QTest::newRow("BNE") << Instruction(5, 14, 15, 61) \ << regs \ << regs.read_pc() + 4 + (61 << 2); |