add divde regression test
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 6 Oct 2020 02:52:40 +0000 (19:52 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 6 Oct 2020 02:52:40 +0000 (19:52 -0700)
src/soc/fu/div/test/test_pipe_caller.py

index fd9a1a711d4971185dfd46a90ee23cfe53752e81..db572332991268a624891aa53f8355110d87478f 100644 (file)
@@ -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