From: Dmitry Selyutin Date: Sun, 20 Nov 2022 14:17:32 +0000 (+0300) Subject: power_insn: support els specifier assembly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=944ac22363e89cb4ad93cd8fd9e082377e073d6c;p=openpower-isa.git power_insn: support els specifier assembly --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index a9ac1132..58190b46 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2817,6 +2817,22 @@ class SpecifierDZ(SpecifierXZ): spec.validate(others=items) +@_dataclasses.dataclass(eq=True, frozen=True) +class SpecifierEls(Specifier): + @classmethod + def match(cls, desc, record): + if desc != "els": + return None + + return cls(record=record) + + def assemble(self, insn): + rm = insn.prefix.rm.select(record=self.record) + rm.els = 1 + if self.record.svp64.mode is _SVMode.LDST_IDX: + rm.mode.sel = 1 + + class Specifiers(tuple): SPECS = ( SpecifierW, @@ -2831,6 +2847,7 @@ class Specifiers(tuple): SpecifierZZ, SpecifierSZ, SpecifierDZ, + SpecifierEls, ) def __new__(cls, items, record):