lavc/flacdsp: fix sign extension in R-V V wasted33

We need to use either VWCVT.X.X.V or VSEXT.VF2. The later is preferable
to avoid changing VTYPE.
This commit is contained in:
Rémi Denis-Courmont 2024-06-06 22:21:30 +03:00
parent 5939f7228a
commit c3dbbb316e
1 changed files with 2 additions and 3 deletions

View File

@ -163,12 +163,11 @@ func ff_flac_wasted33_rvv, zve64x
ret
2: // Pessimistic case: wasted >= 32
vsetvli t0, a3, e32, m4, ta, ma
vsetvli t0, a3, e64, m8, ta, ma
vle32.v v8, (a1)
sub a3, a3, t0
vwcvtu.x.x.v v16, v8
vsext.vf2 v16, v8
sh2add a1, t0, a1
vsetvli zero, zero, e64, m8, ta, ma
vsll.vx v16, v16, a2
vse64.v v16, (a0)
sh3add a0, t0, a0