From dbaa53d9c846b1ecf32516fa5abc274bbd40b3ca Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Thu, 26 Mar 2020 10:55:24 -0400 Subject: [PATCH] Add tests for subfic and neg --- src/soc/simulator/test_sim.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/soc/simulator/test_sim.py b/src/soc/simulator/test_sim.py index 95e0d291..aadaf667 100644 --- a/src/soc/simulator/test_sim.py +++ b/src/soc/simulator/test_sim.py @@ -91,9 +91,11 @@ class DecoderTestCase(FHDLTestCase): def test_sub(self): lst = ["addi 1, 0, 0x1234", "addi 2, 0, 0x5678", - "subf 1, 1, 2"] + "subf 3, 1, 2", + "subfic 4, 1, 0x1337", + "neg 5, 1"] with Program(lst) as program: - self.run_test_program(program, [1, 2]) + self.run_test_program(program, [1, 2, 3, 4, 5]) def run_test_program(self, prog, reglist): simulator = InternalOpSimulator() -- 2.30.2