From ab7c88d9a686f341c5af9ffd5b68175e0b67bb55 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 25 Aug 2021 14:52:01 +0000 Subject: [PATCH] fixedlogical: switch popcntw to XLEN --- openpower/isa/fixedlogical.mdwn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.30.2