fixedlogical: switch cnttzd to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:09:14 +0000 (15:09 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:09:14 +0000 (15:09 +0000)
openpower/isa/fixedlogical.mdwn

index e279109a22436ec4ad249c44715bf838ecd7d5ad..2a0471e9bf09ae8474c105d6d8dceee872fd58b2 100644 (file)
@@ -447,11 +447,11 @@ 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)
+    RA <- EXTZ(n)
 
 Special Registers Altered: