add dz/sz assertion in is_bc mode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Sep 2022 12:48:23 +0000 (13:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Sep 2022 12:48:23 +0000 (13:48 +0100)
src/openpower/sv/trans/svp64.py

index 59611cc0f231761f4019c00c33ae5135fe71fbb0..37fb75669b783dff918011aa0a34b7ad5798f9df 100644 (file)
@@ -1186,6 +1186,8 @@ class SVP64Asm:
                 elif encmode == 'cti':
                     svp64_rm.branch.CTR = 1
                     svp64_rm.branch.ctr.CTi = 1
+                elif encmode in ['dz', 'zz']:
+                    raise AssertionError("no encmode %s, use 'sz'" % encmode)
                 else:
                     raise AssertionError("unknown encmode %s" % encmode)
             else: