projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c767b21
)
Update cmp test in test_caller.py
author
Michael Nolan
<mtnolan2640@gmail.com>
Wed, 13 May 2020 15:35:41 +0000
(11:35 -0400)
committer
Michael Nolan
<mtnolan2640@gmail.com>
Wed, 13 May 2020 15:35:41 +0000
(11:35 -0400)
src/soc/decoder/isa/test_caller.py
patch
|
blob
|
history
diff --git
a/src/soc/decoder/isa/test_caller.py
b/src/soc/decoder/isa/test_caller.py
index f1224f4869a82c23761fc39787502e8a22741269..a0381b9de6f919e67de8340d4c265194af3217b4 100644
(file)
--- a/
src/soc/decoder/isa/test_caller.py
+++ b/
src/soc/decoder/isa/test_caller.py
@@
-181,11
+181,11
@@
class DecoderTestCase(FHDLTestCase):
def test_cmp(self):
lst = ["addis 1, 0, 0xffff",
"addis 2, 0, 0xffff",
- "cmp cr
0
, 0, 1, 2",
+ "cmp cr
2
, 0, 1, 2",
"mfcr 3"]
with Program(lst) as program:
sim = self.run_tst_program(program)
- self.assertEqual(sim.gpr(3), SelectableInt(0x200000
00
, 64))
+ self.assertEqual(sim.gpr(3), SelectableInt(0x200000, 64))
def test_slw(self):
lst = ["slw 1, 3, 2"]