From: Dmitry Selyutin Date: Tue, 20 Sep 2022 11:36:18 +0000 (+0300) Subject: power_insn: simplify specifiers sorting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bc575f37f35994a6679fa88e446ad9a14d862a8;p=openpower-isa.git power_insn: simplify specifiers sorting --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 94aa8f57..cfc1bf6f 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1969,9 +1969,8 @@ class SVP64Instruction(PrefixedInstruction): Rc = bool(record.mdwn.operands["Rc"].value) rm = self.prefix.rm.select(record=record, Rc=Rc) - # convert specifiers to /x/y/z - specifiers = list(rm.specifiers(record=record)) - specifiers.sort() # sort lexicographically + # convert specifiers to /x/y/z (sorted lexicographically) + specifiers = sorted(rm.specifiers(record=record)) if specifiers: # if any add one extra to get the extra "/" specifiers = ([""] + specifiers) specifiers = "/".join(specifiers)