power_insn: fix AA match
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 7 Oct 2022 12:15:09 +0000 (15:15 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 14 Oct 2022 18:52:03 +0000 (21:52 +0300)
src/openpower/decoder/power_insn.py

index ca90eb8032cf0f94769a5133c003d947d9be1c84..facfb1e0bb91360547cd83ec6dcaf3d990ee513b 100644 (file)
@@ -2220,7 +2220,7 @@ class PPCDatabase:
                 return None
             alias = LK_match(name[:-1])
             if alias is None:
-                return None
+                alias = name[:-1]
             record = records[alias]
             if record.intop not in {_MicrOp.OP_B, _MicrOp.OP_BC}:
                 raise ValueError(record)