From 69eebcb142b054ec14b3031bfe4e290767c53b7a Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 5 Oct 2020 19:17:24 -0700 Subject: [PATCH] add moduw 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 c2b8b119..fd9a1a71 100644 --- a/src/soc/fu/div/test/test_pipe_caller.py +++ b/src/soc/fu/div/test/test_pipe_caller.py @@ -11,6 +11,14 @@ from soc.fu.div.test.helper import (log_rand, get_cu_inputs, class DivTestCases(TestAccumulatorBase): + def case_moduw_regression(self): + lst = ["moduw 3, 1, 2"] + initial_regs = [0] * 32 + initial_regs[1] = 0x1 + initial_regs[2] = 0xffffffffffffffff + with Program(lst, bigendian) as prog: + self.add_case(prog, initial_regs) + def case_modsw_regression(self): lst = ["modsw 3, 1, 2"] initial_regs = [0] * 32 -- 2.30.2