From: Luke Kenneth Casson Leighton Date: Sat, 22 Aug 2020 14:11:46 +0000 (+0100) Subject: extend addis test X-Git-Tag: semi_working_ecp5~272^2~27 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c006b145da6e1b272b13d5929e6238b4fe742f6;p=soc.git extend addis test --- diff --git a/src/soc/simulator/test_sim.py b/src/soc/simulator/test_sim.py index ba7b8643..41c7e1d7 100644 --- a/src/soc/simulator/test_sim.py +++ b/src/soc/simulator/test_sim.py @@ -334,13 +334,18 @@ class GeneralTestCases(FHDLTestCase): def test_31_addis(self): """tests for zero not in register zero """ - lst = [ "rldicr 0, 0,32,31", - "oris 0, 0,32767", - "ori 0, 0,65535", - "addis 1, 0, 1", + lst = [ "rldicr 0, 0, 32, 31", + "oris 0, 0, 32767", + "ori 0, 0, 65535", + "addis 1, 0, 1", + "ori 1, 1, 515", + "rldicr 1, 1, 32, 31", + "oris 1, 1, 1029", + "ori 1, 1, 1543", + "addis 2, 0, -1", ] with Program(lst, bigendian) as program: - self.run_tst_program(program, [0, 1]) + self.run_tst_program(program, [0, 1, 2]) def run_tst_program(self, prog, initial_regs=None, initial_sprs=None, initial_mem=None):