From 99bcb26563d29bbd36ac9d08d003ab1345850e46 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 12 Mar 2023 22:42:23 +0000 Subject: [PATCH] First working version of SVP64 arm xchacha_hchacha20() function --- crypto/chacha20/src/xchacha20_svp64.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/chacha20/src/xchacha20_svp64.s b/crypto/chacha20/src/xchacha20_svp64.s index 4407d980..4b5ce6e3 100644 --- a/crypto/chacha20/src/xchacha20_svp64.s +++ b/crypto/chacha20/src/xchacha20_svp64.s @@ -75,8 +75,9 @@ xchacha_hchacha20_svp64_real: sv.ld *x+6, 0(in_ptr) # set up VL=32 vertical-first, and SVSHAPEs 0-2 - # vertical-first, set MAXVL (and r22) - setvl 22, 0, 32, 1, 0, 1 + # set vertical firstMAXVL (and r22)a + setvl 0, 0, 32, 0, 1, 1 # MAXVL=VL=32 + setvl 22, 0, 32, 1, 0, 1 # vertical-first mode # SHAPE0, used by sv.add starts at GPR #8 svindex 4, 0, 1, 3, 0, 1, 0 # SVSHAPE0, a # SHAPE1, used by sv.xor starts at GPR #12 -- 2.30.2