projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0734b22
)
(no commit message)
author
lkcl
<lkcl@web>
Wed, 8 Feb 2023 19:34:46 +0000
(19:34 +0000)
committer
IkiWiki
<ikiwiki.info>
Wed, 8 Feb 2023 19:34:46 +0000
(19:34 +0000)
openpower/sv/rfc/ls005.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/rfc/ls005.mdwn
b/openpower/sv/rfc/ls005.mdwn
index f19cf7fc5c9f9799e98135198ee9ed1e52883a35..ee986f3cdc781b300953912c28fb3f6c69d59844 100644
(file)
--- a/
openpower/sv/rfc/ls005.mdwn
+++ b/
openpower/sv/rfc/ls005.mdwn
@@
-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{}