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

index 3118ad7d5e92f3d74ef6e1ae312ae622a94cfe46..645a754be11713b6bdef98b78d407648b6b8cc06 100644 (file)
@@ -408,7 +408,7 @@ X-Form
 Pseudo-code:
 
     n <- 0
-    do i = 0 to 63
+    do i = 0 to (XLEN-1)
        if (RS)[i] = 1 then
            n <-  n+1
     RA <- n