[FFmpeg-devel] [PATCH] lavc/sbrdsp: fold immediate offset into relocation

Rémi Denis-Courmont remi at remlab.net
Sat May 25 20:49:29 EEST 2024


This results in AUIPC; ADDI instead of AUIPC; ADDI; ... ADDI.
---
 libavcodec/riscv/sbrdsp_rvv.S | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/riscv/sbrdsp_rvv.S b/libavcodec/riscv/sbrdsp_rvv.S
index aba9a28108..331b88022c 100644
--- a/libavcodec/riscv/sbrdsp_rvv.S
+++ b/libavcodec/riscv/sbrdsp_rvv.S
@@ -228,9 +228,8 @@ func ff_sbr_hf_g_filt_rvv, zve32f
 endfunc
 
 .macro hf_apply_noise n
-        lla     a6, ff_sbr_noise_table
+        lla     a6, ff_sbr_noise_table + 8
         fmv.s.x ft0, zero
-        addi    a6, a6, 8
 1:
 .if \n & 1
         min     t0, t0, a5 // preserve parity of t0 for v4 sign injector
-- 
2.45.1



More information about the ffmpeg-devel mailing list