From: Dmitry Selyutin Date: Mon, 21 Nov 2022 17:36:29 +0000 (+0300) Subject: power_insn: support slu specifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fb7b7312a104c842aafdea2bf1263b831c15508;p=openpower-isa.git power_insn: support slu specifier --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 2fd14eeb..ea8dc5c4 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2963,6 +2963,17 @@ class SpecifierSL(SpecifierBranch): rm.SL = 1 +@_dataclasses.dataclass(eq=True, frozen=True) +class SpecifierSLu(SpecifierBranch): + @classmethod + def match(cls, desc, record): + return super().match(desc=desc, record=record, etalon="slu") + + def assemble(self, insn): + rm = insn.prefix.rm.select(record=self.record) + rm.SLu = 1 + + class Specifiers(tuple): SPECS = ( SpecifierW, @@ -2986,6 +2997,7 @@ class Specifiers(tuple): SpecifierAll, SpecifierSNZ, SpecifierSL, + SpecifierSLu, ) def __new__(cls, items, record):