From 1bb9e7857cba06c9b9a61f88c04e2770ec6fbfd9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 11 Sep 2022 10:58:29 +0100 Subject: [PATCH] whoops missed lsb-shift parameter --- src/openpower/decoder/power_insn.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 994319bb..17b0db8f 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -701,6 +701,7 @@ class CR3Operand(RegisterOperand): vshift = 4 sshift = 3 spshft = 2 + lsbshf = 0 if vector: value = ((value << vshift) | (spec<>spshft, bits=bits) + value = _SelectableInt(value=value.value>>lsbshf, bits=bits) spec = _SelectableInt(value=spec.value, bits=bits) #print ("spec", bin(spec.value), spec.bits) #print ("value", bin(value.value), value.bits) @@ -747,8 +749,8 @@ class CR5Operand(RegisterOperand): span = (spshft*('{0}',) + spec_span + span) # add the 2 LSBs back in - v = (value.value<