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

index 645a754be11713b6bdef98b78d407648b6b8cc06..58d30d9a81b0cae2f4a809d24c4c210cca186f0c 100644 (file)
@@ -427,7 +427,7 @@ X-Form
 Pseudo-code:
 
     n <- 0
-    do while n < 64
+    do while n < XLEN
       if (RS)[n]  = 1 then
          leave
       n <- n + 1