projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96941e3
)
(no commit message)
author
lkcl
<lkcl@web>
Wed, 23 Jun 2021 10:11:35 +0000
(11:11 +0100)
committer
IkiWiki
<ikiwiki.info>
Wed, 23 Jun 2021 10:11:35 +0000
(11:11 +0100)
openpower/sv/ldst.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/ldst.mdwn
b/openpower/sv/ldst.mdwn
index a196961ea173e0a0ce2bff4d624ffbed46904931..5994fc46d2b849f6d0e1787ea0a19152dc006018 100644
(file)
--- a/
openpower/sv/ldst.mdwn
+++ b/
openpower/sv/ldst.mdwn
@@
-87,6
+87,14
@@
with the pseudocode below, the immediate can be used to give unit stride or elem
if (RAupdate.isvec) u++;
if (RT.isvec) j++;
+ # reverses the bitorder up to "width" bits
+ def bitrev(val, width):
+ result = 0
+ for _ in range(width):
+ result = (result << 1) | (val & 1)
+ val >>= 1
+ return result
+
Indexed LD is:
# format: ldop RT, RA, RB