projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab042d
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 22 Dec 2020 23:20:50 +0000
(23:20 +0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 22 Dec 2020 23:20:50 +0000
(23:20 +0000)
openpower/sv/vector_ops.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/vector_ops.mdwn
b/openpower/sv/vector_ops.mdwn
index c2f54e56cf8ecd64629ad96b3e48eb46b093485e..b7533981f321c21a2e940a701cda4b2736354dd8 100644
(file)
--- a/
openpower/sv/vector_ops.mdwn
+++ b/
openpower/sv/vector_ops.mdwn
@@
-73,6
+73,10
@@
Example
TODO: a Vector CR-based version of the same, due to CRs being used for predication. This would use the same testing mechanism as branch: BO[0:2]
where bit 2 is inv, bits 0:1 select the bit of the CR.
+
+ def test_CR_bit(CR, BO):
+ return CR[BO[0:1]] == BO[2]
+
def iotacr(RT, BA, BO):
mask = get_src_predicate()
count = 0