From: lkcl Date: Fri, 14 Apr 2023 15:31:18 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls008_v1~17 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7902291a03e500f2a2a4327d4125b4cb77d989b;p=libreriscv.git --- diff --git a/simple_v_extension/daxpy_example.mdwn b/simple_v_extension/daxpy_example.mdwn index 9a43ef314..48a3c7aee 100644 --- a/simple_v_extension/daxpy_example.mdwn +++ b/simple_v_extension/daxpy_example.mdwn @@ -48,3 +48,24 @@ c.bnez a0, loop # repeat if n != 0 c.ret # return ``` + +# SVE Version + +``` + 1 // x0 = &x[0], x1 = &y[0], x2 = &a, x3 = &n + 2 daxpy_: + 3 ldrswx3, [x3] // x3=*n + 4 movx4, #0 // x4=i=0 + 5 whilelt p0.d, x4, x3 // p0=while(i++