From b58daa5f09d736173c0aa531fe8a7abad9ae5db1 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Mon, 20 Apr 2020 17:04:33 +0200 Subject: [PATCH] testcase for addis --- 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 c170397e..f356dd76 100644 --- a/src/soc/simulator/test_sim.py +++ b/src/soc/simulator/test_sim.py @@ -108,6 +108,13 @@ class DecoderTestCase(FHDLTestCase): with Program(lst) as program: self.run_tst_program(program, [1, 2, 3]) + def test_addis(self): + lst = ["addi 1, 0, 0x0FFF", + "addis 1, 1, 0x0F" + ] + 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