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=fe21d33bf2c865bf2819bb143dd481f7a6552cc0;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):