fixedlogical: switch popcntb to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 14:51:11 +0000 (14:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 12:56:50 +0000 (13:56 +0100)
openpower/isa/fixedlogical.mdwn

index d1ce0238bb28eb739cdfedeb700d0b0373254755..0953c25970f4f90fb46f4a75277f24d18ab0eba8 100644 (file)
@@ -314,7 +314,7 @@ X-Form
 
 Pseudo-code:
 
-    do i = 0 to 7
+    do i = 0 to ((XLEN/8)-1)
        n <-  0
        do j = 0 to 7
           if (RS)[(i*8)+j] = 1 then