From 076eaaf0f52dcd0f7ffcf74aab7f1365fd9ae240 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Mon, 20 Apr 2020 17:23:05 +0200 Subject: [PATCH] testcase fo mulli --- src/soc/simulator/test_sim.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/simulator/test_sim.py b/src/soc/simulator/test_sim.py index f356dd76..0a26380c 100644 --- a/src/soc/simulator/test_sim.py +++ b/src/soc/simulator/test_sim.py @@ -115,6 +115,13 @@ class DecoderTestCase(FHDLTestCase): with Program(lst) as program: self.run_tst_program(program, [1]) + def test_mulli(self): + lst = ["addi 1, 0, 3", + "mulli 1, 1, 2" + ] + with Program(lst) as program: + self.run_tst_program(program, [1]) + def run_tst_program(self, prog, reglist): simulator = InternalOpSimulator() self.run_tst(prog, simulator) -- 2.30.2