From: Dmitry Selyutin Date: Wed, 25 Aug 2021 14:52:01 +0000 (+0000) Subject: fixedlogical: switch popcntw to XLEN X-Git-Tag: xlen-bcd~67 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab7c88d9a686f341c5af9ffd5b68175e0b67bb55;p=openpower-isa.git fixedlogical: switch popcntw to XLEN --- diff --git a/openpower/isa/fixedlogical.mdwn b/openpower/isa/fixedlogical.mdwn index 039f5cb9..10fab134 100644 --- a/openpower/isa/fixedlogical.mdwn +++ b/openpower/isa/fixedlogical.mdwn @@ -335,10 +335,10 @@ Pseudo-code: do i = 0 to 1 n <- 0 - do j = 0 to 31 - if (RS)[(i*32)+j] = 1 then + do j = 0 to ((XLEN/2)-1) + if (RS)[(i*(XLEN/2))+j] = 1 then n <- n+1 - RA[(i*32):(i*32)+31] <- n + RA[(i*(XLEN/2)):(i*(XLEN/2))+((XLEN/2)-1)] <- n Special Registers Altered: