projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7bd6e1
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 1 Dec 2020 17:42:31 +0000
(17:42 +0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 1 Dec 2020 17:42:31 +0000
(17:42 +0000)
openpower/sv/setvl.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/setvl.mdwn
b/openpower/sv/setvl.mdwn
index 250ff634ed1e0df4aca3ca36d0dadaef8e2b72ba..1f268e598bd584e07efefaf7f300ab00971a1ca1 100644
(file)
--- a/
openpower/sv/setvl.mdwn
+++ b/
openpower/sv/setvl.mdwn
@@
-60,3
+60,16
@@
See links:
// update CR from VL (not rt)
CR0 = ....
}
+
+# Examples
+
+## Core concept loop
+
+ loop:
+ setvli a3, a0, MVL=8 # update a3 with vl
+ # (# of elements this iteration)
+ # set MVL to 8
+ # do vector operations at up to 8 length (MVL=8)
+ # ...
+ sub a0, a0, a3 # Decrement count by vl
+ bnez a0, loop # Any more?