fixedlogical: switch cntlzwX to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 13:03:29 +0000 (13:03 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 14:47:42 +0000 (14:47 +0000)
openpower/isa/fixedlogical.mdwn

index 069a995c06f72da641888ed3959e247c051d97dd..b170277d1afc5a5d448865b61d9ccd48fb9cec04 100644 (file)
@@ -257,12 +257,12 @@ X-Form
 
 Pseudo-code:
 
-    n <- 32
-    do while n < 64
+    n <- (XLEN/2)
+    do while n < XLEN
        if (RS)[n] = 1 then
            leave
        n <- n + 1
-    RA <- n - 32
+    RA <- n - (XLEN/2)
 
 Special Registers Altered: