From 8017f3c7ff84dc1471dd015425556af3df104af6 Mon Sep 17 00:00:00 2001 From: lkcl Date: Tue, 1 Dec 2020 20:46:55 +0000 Subject: [PATCH] --- openpower/sv/setvl.mdwn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/openpower/sv/setvl.mdwn b/openpower/sv/setvl.mdwn index 28ccf7c4e..50aa9c5a4 100644 --- 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 -- 2.30.2