From 4bc575f37f35994a6679fa88e446ad9a14d862a8 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 20 Sep 2022 14:36:18 +0300 Subject: [PATCH] power_insn: simplify specifiers sorting --- src/openpower/decoder/power_insn.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.30.2