From: Jacob Lifshay Date: Tue, 6 Oct 2020 01:07:56 +0000 (-0700) Subject: add modsw regression X-Git-Tag: 24jan2021_ls180~222 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ba97176dc990fa057bd7849f0b3829a9bec37f0;p=soc.git add modsw regression --- diff --git a/src/soc/fu/div/test/test_pipe_caller.py b/src/soc/fu/div/test/test_pipe_caller.py index bd22c81d..c2b8b119 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_modsw_regression(self): + lst = ["modsw 3, 1, 2"] + initial_regs = [0] * 32 + initial_regs[1] = 0xffffffffffffffff + initial_regs[2] = 0x2 + with Program(lst, bigendian) as prog: + self.add_case(prog, initial_regs) + def case_divweu_regression(self): # simulator is wrong, FSM and power-instruction-analyzer both correct lst = ["divweu 3, 1, 2"]