(no commit message)
authorlkcl <lkcl@web>
Wed, 8 Feb 2023 19:34:46 +0000 (19:34 +0000)
committerIkiWiki <ikiwiki.info>
Wed, 8 Feb 2023 19:34:46 +0000 (19:34 +0000)
openpower/sv/rfc/ls005.mdwn

index f19cf7fc5c9f9799e98135198ee9ed1e52883a35..ee986f3cdc781b300953912c28fb3f6c69d59844 100644 (file)
@@ -110,4 +110,31 @@ the full width".
 
 ----------------
 
+# Examples
+
+add pseudocode examples demonstrating modification.
+
+before for popcntb:
+
+```
+do i = 0 to 7
+   n <-  0
+   do j = 0 to 7
+      if (RS)[(i*8)+j] = 1 then
+          n <- n+1
+   RA[(i*8):(i*8)+7] <-  n
+```
+
+after:
+
+```
+do i = 0 to ((XLEN/8)-1)
+   n <-  0
+   do j = 0 to 7
+      if (RS)[(i*8)+j] = 1 then
+          n <- n+1
+   RA[(i*8):(i*8)+7] <-  n
+```
+
+
 \newpage{}