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=50eb051ab3b916aab443ea3484a02b00e5a143d0;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: