From: lkcl Date: Thu, 18 May 2023 14:58:02 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=264ff061004aa5d94c4abc22322f911b87fb2d69;p=libreriscv.git --- diff --git a/simple_v_extension/daxpy_example.mdwn b/simple_v_extension/daxpy_example.mdwn index 3eed4c98a..783e5c986 100644 --- a/simple_v_extension/daxpy_example.mdwn +++ b/simple_v_extension/daxpy_example.mdwn @@ -12,10 +12,7 @@ Summary: 9 instructions (see below, 8 instructions) 5 of which are 64-bit for a total of 14 "words". ``` - # r5: n count - # r6: x ptr - # r7: y ptr - # fp1: a mul-scalar + # r5: n count; r6: x ptr; r7: y ptr; fp1: a 1 mtctr 5 # move n to CTR 2 addi r10,r6,0 # copy y-ptr into r10 (y') 3 .L2 @@ -33,10 +30,7 @@ Relies on post-increment, relies on no overlap between x and y in memory, and critically relies on y overwrite. ``` - # r5: n count - # r6: x ptr - # r7: y ptr - # fp1: a mul-scalar + # r5: n count; r6: x ptr; r7: y ptr; fp1: a 1 mtctr 5 # move n to CTR 2 .L2 3 setvl MAXVL=32,VL=CTR # actually VL=MIN(MAXVL,CTR)