Improve debug information on mtcrf test case
authorCesar Strauss <cestrauss@gmail.com>
Sun, 25 Apr 2021 14:18:29 +0000 (11:18 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sun, 25 Apr 2021 14:18:29 +0000 (11:18 -0300)
src/openpower/decoder/isa/test_caller.py

index ce934609b23be8199a010d9eb51ac3c2564ce8be..710fc6c0fcee9aa87a8df801dab2f180c70484dc 100644 (file)
@@ -314,7 +314,7 @@ class DecoderTestCase(FHDLTestCase):
             print("cr", sim.cr)
             expected = (7-i)
             # check CR[0]/1/2/3 as well
-            print("cr%d", sim.crl[i])
+            print("cr%d" % i, sim.crl[i].asint(True))
             self.assertTrue(SelectableInt(expected, 4) == sim.crl[i])
             # check CR itself
             self.assertEqual(sim.cr, SelectableInt(expected << ((7-i)*4), 64))