From dd401512a1c1f1e2bf340235544d29db0ab7426a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 9 Aug 2020 15:01:23 +0100 Subject: [PATCH] add extra divwo regression test --- src/soc/fu/div/test/test_pipe_caller.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2