Add test for rlwnm
authorMichael Nolan <mtnolan2640@gmail.com>
Sun, 10 May 2020 22:55:16 +0000 (18:55 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Sun, 10 May 2020 22:55:16 +0000 (18:55 -0400)
src/soc/alu/test/test_pipe_caller.py

index bf5a7e24a8b7fdc6f38f6dfa9029832f0733f8f1..f58d2a01c4b4f04797feb4a9775e2d9ed100fcc8 100644 (file)
@@ -166,6 +166,15 @@ class ALUTestCase(FHDLTestCase):
         with Program(lst) as program:
             sim = self.run_tst_program(program, initial_regs)
 
+    def test_rlwnm(self):
+        lst = ["rlwnm 3, 1, 2, 20, 6"]
+        initial_regs = [0] * 32
+        initial_regs[1] = random.randint(0, (1<<64)-1)
+        initial_regs[2] = random.randint(0, 63)
+        with Program(lst) as program:
+            sim = self.run_tst_program(program, initial_regs)
+        
+
     def test_ilang(self):
         rec = CompALUOpSubset()