add regression test on setb simulator error
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Jul 2020 09:51:52 +0000 (10:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Jul 2020 09:51:52 +0000 (10:51 +0100)
src/soc/fu/cr/test/test_pipe_caller.py

index 27ea17b7b9a9ae3dbf40498bac27e42ecc0c68b3..a87bb89689bb293282435ab53689a86e62738ca7 100644 (file)
@@ -134,6 +134,12 @@ class CRTestCase(FHDLTestCase):
             cr = random.randint(0, (1<<32)-1)
             self.run_tst_program(Program(lst, bigendian), initial_cr=cr)
 
+    def test_regression_setb(self):
+        lst = [f"setb 1, 6"]
+        cr = random.randint(0, 0x66f6b106)
+        self.run_tst_program(Program(lst, bigendian), initial_cr=cr)
+
+
     def test_ilang(self):
         pspec = CRPipeSpec(id_wid=2)
         alu = CRBasePipe(pspec)