From: Luke Kenneth Casson Leighton Date: Sat, 22 Aug 2020 11:24:29 +0000 (+0100) Subject: add regression test for nonzero addis X-Git-Tag: semi_working_ecp5~272^2~32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc1c683134e57ee8510207d41e71e1834066b516;p=soc.git add regression test for nonzero addis --- diff --git a/src/soc/fu/alu/test/test_pipe_caller.py b/src/soc/fu/alu/test/test_pipe_caller.py index c8d23a35..4e55dadc 100644 --- a/src/soc/fu/alu/test/test_pipe_caller.py +++ b/src/soc/fu/alu/test/test_pipe_caller.py @@ -99,6 +99,13 @@ class ALUTestCase(TestAccumulatorBase): initial_regs[2] = random.randint(0, (1 << 64)-1) self.add_case(Program(lst, bigendian), initial_regs) + def case_addis_nonzero_r0_regression(self): + lst = [f"addis 3, 0, 1"] + print(lst) + initial_regs = [0] * 32 + initial_regs[0] = 5 + self.add_case(Program(lst, bigendian), initial_regs) + def case_addis_nonzero_r0(self): for i in range(10): imm = random.randint(-(1 << 15), (1 << 15)-1)