From: lkcl Date: Tue, 1 Dec 2020 17:42:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~1545 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=794f75f2d3d70bed1f8b8bdb1ff6662dbafab9d2;p=libreriscv.git --- diff --git a/openpower/sv/setvl.mdwn b/openpower/sv/setvl.mdwn index 250ff634e..1f268e598 100644 --- 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?