From: Luke Kenneth Casson Leighton Date: Fri, 1 Dec 2023 08:56:50 +0000 (+0000) Subject: update comment on pospopcount svp64 cookbook example X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f3dfcdedf6f9da149591bff3fc8e35cd6ce0f78;p=libreriscv.git update comment on pospopcount svp64 cookbook example --- diff --git a/openpower/sv/cookbook/pospopcnt.mdwn b/openpower/sv/cookbook/pospopcnt.mdwn index bb6181aae..dc1b32c74 100644 --- a/openpower/sv/cookbook/pospopcnt.mdwn +++ b/openpower/sv/cookbook/pospopcnt.mdwn @@ -26,7 +26,7 @@ A simple but still hardware-paralleliseable SVP64 assembler for ``` mtspr 9, 3" # move r3 to CTR # VL = MIN(CTR,MAXVL=8), Rc=1 (CR0 set if CTR ends) -setvl 3,0,8,0,1,1" # set MVL=8, VL=CTR and CR0 (Rc=1) +setvl 3,0,8,0,1,1" # set MVL=8, VL=MIN(MVL,CTR) # load VL bytes (update r4 addr) but compressed (dw=8) addi 6, 0, 0 # initialise all 64-bits of r6 to zero sv.lbzu/pi/dw=8 *6, 1(4) # should be /lf here as well