projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbee18
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 22 Dec 2020 19:38:22 +0000
(19:38 +0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 22 Dec 2020 19:38:22 +0000
(19:38 +0000)
openpower/sv/vector_ops.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/vector_ops.mdwn
b/openpower/sv/vector_ops.mdwn
index 64fc9e63d1104e023ad7197a2886cad30c43360c..a7b539badc0b06272c224c2a349801ce76192351 100644
(file)
--- a/
openpower/sv/vector_ops.mdwn
+++ b/
openpower/sv/vector_ops.mdwn
@@
-72,6
+72,15
@@
Example
TODO: a Vector CR-based version of the same, due to CRs being used for predication.
+ def iotacr(RT, BA):
+ mask = get_src_predicate()
+ count = 0
+ for i in range(VL):
+ if mask & (1<<i) == 0: continue
+ iregs[RT+i] = count
+ if test_CR_bit(CR[i+BA]):
+ count += 1
+
# Scalar
These may all be viewed as suitable for fitting into a scalar bitmanip extension.