From: Luke Kenneth Casson Leighton Date: Tue, 9 Jan 2024 14:11:28 +0000 (+0000) Subject: one more space reduction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=474c45a232daacc3e2c9dc9acc553415ee38fc61;p=libreriscv.git one more space reduction --- diff --git a/conferences/fosdem2024/fosdem2024_ddffirst/pospopcount.s b/conferences/fosdem2024/fosdem2024_ddffirst/pospopcount.s index 3bbdddf10..0f0839402 100644 --- a/conferences/fosdem2024/fosdem2024_ddffirst/pospopcount.s +++ b/conferences/fosdem2024/fosdem2024_ddffirst/pospopcount.s @@ -1,7 +1,7 @@ -mtspr 9, 3 # move r3 to CTR -setvl 3,0,8,0,1,1 # MVL=8, VL=r3=MIN(MVL,CTR) +mtspr 9, 3 # move r3 to CTR +setvl 3,0,8,0,1,1 # MVL=8, VL=r3=MIN(MVL,CTR) # load VL bytes (update r4 addr) at width=8 (dw=8) -addi 6, 0, 0 # set all 64-bits of r6=0 +addi 6, 0, 0 # set all 64-bits of r6=0 sv.lbzu/pi/dw=8 *6, 1(4) gbbd 8,6 # gbbd performs the transpose # now bits are turned around, popcnt and sum them