From f7902291a03e500f2a2a4327d4125b4cb77d989b Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 14 Apr 2023 16:31:18 +0100 Subject: [PATCH] --- simple_v_extension/daxpy_example.mdwn | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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++