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

index 0953c25970f4f90fb46f4a75277f24d18ab0eba8..a15908f4097f35e7c664ba8a86feaca5c30c7895 100644 (file)
@@ -353,9 +353,9 @@ X-Form
 Pseudo-code:
 
     s <- 0
-    do i = 0 to 7
+    do i = 0 to ((XLEN/8)-1)
         s <- s ^ (RS)[i*8+7]
-    RA <- [0] * 63 || s
+    RA <- [0] * (XLEN-1) || s
 
 Special Registers Altered: