From 7e7f0d13e8d8c4b77c62fef25089b1a76294df28 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 13 May 2020 11:35:41 -0400 Subject: [PATCH] Update cmp test in test_caller.py --- src/soc/decoder/isa/test_caller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/decoder/isa/test_caller.py b/src/soc/decoder/isa/test_caller.py index f1224f48..a0381b9d 100644 --- 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 cr0, 0, 1, 2", + "cmp cr2, 0, 1, 2", "mfcr 3"] with Program(lst) as program: sim = self.run_tst_program(program) - self.assertEqual(sim.gpr(3), SelectableInt(0x20000000, 64)) + self.assertEqual(sim.gpr(3), SelectableInt(0x200000, 64)) def test_slw(self): lst = ["slw 1, 3, 2"] -- 2.30.2