projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0af4a
)
(no commit message)
author
lkcl
<lkcl@web>
Fri, 25 Dec 2020 19:45:28 +0000
(19:45 +0000)
committer
IkiWiki
<ikiwiki.info>
Fri, 25 Dec 2020 19:45:28 +0000
(19:45 +0000)
openpower/sv/bitmanip.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/bitmanip.mdwn
b/openpower/sv/bitmanip.mdwn
index d1408dddde229b64f871e27ff3ea78057561abe5..47f4078497ddf9fca7a793546f94fa30fae6bcb6 100644
(file)
--- a/
openpower/sv/bitmanip.mdwn
+++ b/
openpower/sv/bitmanip.mdwn
@@
-4,3
+4,18
@@
do k = 0 to 7
b = VSR[VRB+32].dword[i].byte[k].bit[j]
VSR[VRT+32].dword[i].byte[j].bit[k] = b
+
+# vector bit deposit
+
+vpdepd VRT,VRA,VRB
+
+ do while(m < 64)
+ if VSR[VRB+32].dword[i].bit[63-m]=1 then do
+ result = VSR[VRA+32].dword[i].bit[63-k]
+ VSR[VRT+32].dword[i].bit[63-m] = result
+ k = k + 1
+ m = m + 1
+
+# vector bit extract
+
+other way round