add regression testcase
authorJacob Lifshay <programmerjake@gmail.com>
Sat, 3 Oct 2020 01:04:39 +0000 (18:04 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Sat, 3 Oct 2020 01:04:39 +0000 (18:04 -0700)
src/soc/fu/div/test/test_pipe_caller.py

index 9c4ba3feeceb834cfb87869d0c7d764660e74b64..188196e7e8f8a7613db1825de036990011b60442 100644 (file)
@@ -23,6 +23,12 @@ class DivTestCases(TestAccumulatorBase):
         with Program(lst, bigendian) as prog:
             self.add_case(prog, initial_regs)
 
+    def case_divwe__regression(self):
+        lst = ["divwe. 3, 1, 2"]
+        initial_regs = [0] * 32
+        with Program(lst, bigendian) as prog:
+            self.add_case(prog, initial_regs)
+
     def case_divw_regression(self):
         # simulator is wrong, FSM and power-instruction-analyzer both correct
         lst = [f"divw 0, 1, 2"]