assert prints out XO
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 4 Sep 2022 10:14:49 +0000 (11:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 4 Sep 2022 10:14:49 +0000 (11:14 +0100)
src/openpower/decoder/power_table.py

index 9eb4016e1b210f6115dea7632f1f4002ec47e177..32f308669be48bd569b7e164661e8427c1d5e771 100644 (file)
@@ -81,9 +81,10 @@ def do_table(fname, insns, section, divpoint):
                 if ((op.value & op.mask) == (XO & op.mask)):
                     print ("    match", bin(XO), insn.name)
                     assert table_entries[upper][lower] is None, \
-                            "entry %d %d should be empty "  \
+                            "entry %d %d (XO %s) should be empty "  \
                             "contains %s conflicting %s" % \
-                            (lower, upper, str(table_entries[upper][lower]),
+                            (lower, upper, bin(XO),
+                             str(table_entries[upper][lower]),
                              insn.name)
                     table_entries[upper][lower] = insn.name
                     maxnamelen = max(maxnamelen, len(insn.name))