From ccaeead7b3c47005cfba56f634d595ee9e309282 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 5 Oct 2020 19:52:40 -0700 Subject: [PATCH] add divde regression test --- src/soc/fu/div/test/test_pipe_caller.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index fd9a1a71..db572332 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -11,6 +11,13 @@ from soc.fu.div.test.helper import (log_rand, get_cu_inputs, class DivTestCases(TestAccumulatorBase): + def case_divde_regression(self): + lst = ["divde 3, 1, 2"] + initial_regs = [0] * 32 + initial_regs[2] = 0x1 + with Program(lst, bigendian) as prog: + self.add_case(prog, initial_regs) + def case_moduw_regression(self): lst = ["moduw 3, 1, 2"] initial_regs = [0] * 32 -- 2.30.2