From: Dmitry Selyutin Date: Tue, 1 Nov 2022 19:16:52 +0000 (+0300) Subject: bitmanip.mdwn: avoid overflow for m variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2e5751237defb3bc16db5ec1b951940f54a503d;p=openpower-isa.git bitmanip.mdwn: avoid overflow for m variable --- diff --git a/openpower/isa/bitmanip.mdwn b/openpower/isa/bitmanip.mdwn index 5d404488..9c12c69e 100644 --- a/openpower/isa/bitmanip.mdwn +++ b/openpower/isa/bitmanip.mdwn @@ -111,7 +111,7 @@ Z23-Form Pseudo-code: n <- (RB) - m <- sm + 1 + m <- ((0b0 || sm) + 1) RT <- (n[m:XLEN-1] || [0]*m) + (RA) Special Registers Altered: @@ -128,7 +128,7 @@ Z23-Form Pseudo-code: n <- ([0]*(XLEN/2)) || (RB)[XLEN/2:XLEN-1] - m <- sm + 1 + m <- ((0b0 || sm) + 1) RT <- (n[m:XLEN-1] || [0]*m) + (RA) Special Registers Altered: