projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52028ff
)
(no commit message)
author
lkcl
<lkcl@web>
Tue, 1 Dec 2020 20:46:55 +0000
(20:46 +0000)
committer
IkiWiki
<ikiwiki.info>
Tue, 1 Dec 2020 20:46:55 +0000
(20:46 +0000)
openpower/sv/setvl.mdwn
patch
|
blob
|
history
diff --git
a/openpower/sv/setvl.mdwn
b/openpower/sv/setvl.mdwn
index 28ccf7c4e03e738672cfa5a1bf484a41f65c49ae..50aa9c5a4b412520ba0d02c9a0dbfd3575368f98 100644
(file)
--- a/
openpower/sv/setvl.mdwn
+++ b/
openpower/sv/setvl.mdwn
@@
-75,3
+75,17
@@
Note that setmvli is a pseudo-op, based on RT=0, and setvli likewise, based on R
# ...
sub a0, a0, a3 # Decrement count by vl
bnez a0, loop # Any more?
+
+## Loop using Rc=1
+
+ my_fn:
+ li r3, 1000
+ b test
+ loop:
+ sub r3, r3, r4
+ ...
+ test:
+ setvl. r4, r3, 64
+ bne cr0, loop
+ end:
+ blr