projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4366db6
)
Add test for rlwnm
author
Michael Nolan
<mtnolan2640@gmail.com>
Sun, 10 May 2020 22:55:16 +0000
(18:55 -0400)
committer
Michael Nolan
<mtnolan2640@gmail.com>
Sun, 10 May 2020 22:55:16 +0000
(18:55 -0400)
src/soc/alu/test/test_pipe_caller.py
patch
|
blob
|
history
diff --git
a/src/soc/alu/test/test_pipe_caller.py
b/src/soc/alu/test/test_pipe_caller.py
index bf5a7e24a8b7fdc6f38f6dfa9029832f0733f8f1..f58d2a01c4b4f04797feb4a9775e2d9ed100fcc8 100644
(file)
--- a/
src/soc/alu/test/test_pipe_caller.py
+++ b/
src/soc/alu/test/test_pipe_caller.py
@@
-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()