projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1492334
)
(no commit message)
author
lkcl
<lkcl@web>
Sun, 23 Oct 2022 11:23:17 +0000
(12:23 +0100)
committer
IkiWiki
<ikiwiki.info>
Sun, 23 Oct 2022 11:23:17 +0000
(12:23 +0100)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index f16955f8506cb6f49814d5108d892fc2c3f3f4a8..6b75c68d00580a48ba8072ed6f5d5a4eef5883eb 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-243,6
+243,12
@@
Power ISA is missing LD/ST with shift, which is present in both ARM and x86.
Too complex to add more LD/ST, a compromise is to add shift-and-add.
Replaces a pair of explicit instructions in hot-loops.
+```
+# 1.6.27 Z23-FORM
+ |0 |6 |11 |15 |16 |21 |23 |31 |
+ | PO | RT | RA | RB |sm | XO |Rc |
+```
+
```
uint_xlen_t shadd(uint_xlen_t rs1, uint_xlen_t rs2, uint8_t sh) {
sh = sh & 0x3;