From: Luke Kenneth Casson Leighton Date: Sat, 25 Jul 2020 15:18:16 +0000 (+0100) Subject: add regression test 8, DivPipeCore producing spurious result X-Git-Tag: semi_working_ecp5~545 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8d4731c4516090a7ccce4b65eaf18bd784f07b1;p=soc.git add regression test 8, DivPipeCore producing spurious result --- diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index 9bb54e23..919c1859 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -103,6 +103,14 @@ class DivTestCases(unittest.TestCase): with Program(lst, bigendian) as prog: self.run_test_program(prog, initial_regs) + def test_8_regression(self): + lst = ["divwu. 3, 1, 2"] + initial_regs = [0] * 32 + initial_regs[1] = 18 + initial_regs[2] = 3 + with Program(lst, bigendian) as prog: + self.run_test_program(prog, initial_regs) + def test_divw_by_zero_1(self): lst = ["divw. 3, 1, 2"] initial_regs = [0] * 32