Update cmp test in test_caller.py
authorMichael Nolan <mtnolan2640@gmail.com>
Wed, 13 May 2020 15:35:41 +0000 (11:35 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Wed, 13 May 2020 15:35:41 +0000 (11:35 -0400)
src/soc/decoder/isa/test_caller.py

index f1224f4869a82c23761fc39787502e8a22741269..a0381b9de6f919e67de8340d4c265194af3217b4 100644 (file)
@@ -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"]