fixedlogical: switch cnttzd to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:09:14 +0000 (15:09 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 31 Aug 2021 11:05:38 +0000 (12:05 +0100)
openpower/isa/fixedlogical.mdwn

index bb692d7399d45bc5ea00de3e0fceab1223054d30..c301678c1059521788426385979d41f8e7caf9de 100644 (file)
@@ -447,8 +447,8 @@ X-Form
 Pseudo-code:
 
     n  <- 0
-    do while n < 64
-       if (RS)[63-n] = 0b1 then
+    do while n < XLEN
+       if (RS)[XLEN-1-n] = 0b1 then
             leave
        n  <- n + 1
     RA <- EXTZ64(n)