From: Luke Kenneth Casson Leighton Date: Sun, 11 Sep 2022 09:58:29 +0000 (+0100) Subject: whoops missed lsb-shift parameter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bb9e7857cba06c9b9a61f88c04e2770ec6fbfd9;p=openpower-isa.git whoops missed lsb-shift parameter --- 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<