diff mbox series

[FFmpeg-devel] lavc/audiodsp: fix RISC-V V scalar product (again)

Message ID 20221016105319.11061-1-remi@remlab.net
State Accepted
Commit 4d66e8c12e9540d5fa5131b89bb62bb6e90e7631
Headers show
Series [FFmpeg-devel] lavc/audiodsp: fix RISC-V V scalar product (again) | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont Oct. 16, 2022, 10:53 a.m. UTC
The loop uses a 32-bit accumulator. The current code would only zero
the lower 16 bits thereof.
---
 libavcodec/riscv/audiodsp_rvv.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/riscv/audiodsp_rvv.S b/libavcodec/riscv/audiodsp_rvv.S
index 8e8bbd2058..af1e07bef9 100644
--- a/libavcodec/riscv/audiodsp_rvv.S
+++ b/libavcodec/riscv/audiodsp_rvv.S
@@ -21,7 +21,7 @@ 
 #include "libavutil/riscv/asm.S"
 
 func ff_scalarproduct_int16_rvv, zve32x
-        vsetivli    zero, 1, e16, m1, ta, ma
+        vsetivli    zero, 1, e32, m1, ta, ma
         vmv.s.x     v8, zero
 1:
         vsetvli     t0, a2, e16, m1, ta, ma