From: lkcl Date: Thu, 18 May 2023 14:55:14 +0000 (+0100) Subject: (no commit message) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07c118f8e885152d04d5ed05deb10d94725477b7;p=libreriscv.git --- diff --git a/simple_v_extension/daxpy_example.mdwn b/simple_v_extension/daxpy_example.mdwn index c9ca1cb34..3eed4c98a 100644 --- a/simple_v_extension/daxpy_example.mdwn +++ b/simple_v_extension/daxpy_example.mdwn @@ -24,7 +24,7 @@ for a total of 14 "words". 6 sv.lfdup *64,8(7) # load y into fp64-95, inc y 7 sv.fmadd *64,*64,1,*32 # (*y) = (*y) * (*x) + fp1 8 sv.stfdup *64,8(10) # store at y-copy, inc y' - 9 sv.bc/ctr .L2 # decrement CTR by VL + 9 sv.bc/ctr .L2 # decr CTR by VL, jump !zero 10 blr # return ``` @@ -44,7 +44,7 @@ in memory, and critically relies on y overwrite. 5 sv.lfd *64,8(7) # load y into fp64-95, NO INC 6 sv.fmadd *64,*64,1,*32 # (*y) = (*y) * (*x) + fp1 7 sv.stfdup *64,8(7) # store at y, incr y - 8 sv.bc/ctr .L2 # decrement CTR by VL + 8 sv.bc/ctr .L2 # decr CTR by VL, jump !zero 9 blr # return ```