From 6f1ee0f326b14026f3ff31fe3f22e3a29e56ebc8 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 17 Sep 2022 16:54:01 +0300 Subject: [PATCH] power_insn: support vec2/vec3/vec4 --- src/openpower/decoder/power_insn.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index fcb673e7..40b32e6d 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1280,7 +1280,12 @@ class BaseRM(_Mapping): @property def specifiers(self): - yield from () + if self.subvl == 1: + yield "vec2" + elif self.subvl == 2: + yield "vec3" + elif self.subvl == 3: + yield "vec4" def disassemble(self, verbosity=Verbosity.NORMAL): if verbosity >= Verbosity.VERBOSE: -- 2.30.2