From 5f3dfcdedf6f9da149591bff3fc8e35cd6ce0f78 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 1 Dec 2023 08:56:50 +0000 Subject: [PATCH] update comment on pospopcount svp64 cookbook example --- openpower/sv/cookbook/pospopcnt.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2