From: Luke Kenneth Casson Leighton Date: Sun, 9 Aug 2020 14:01:23 +0000 (+0100) Subject: add extra divwo regression test X-Git-Tag: semi_working_ecp5~419 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd401512a1c1f1e2bf340235544d29db0ab7426a;p=soc.git add extra divwo regression test --- diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index 55180261..558e576b 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -101,6 +101,14 @@ class DivTestCases(TestAccumulatorBase): with Program(lst, bigendian) as prog: self.add_case(prog, initial_regs) + def case_10_regression(self): # overflow fails + lst = ["divwo 3, 1, 2"] + initial_regs = [0] * 32 + initial_regs[1] = 0xbc716835f32ac00c + initial_regs[2] = 0xcdf69a7f7042db66 + with Program(lst, bigendian) as prog: + self.add_case(prog, initial_regs) + def case_divw_by_zero_1(self): lst = ["divw. 3, 1, 2"] initial_regs = [0] * 32