History

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.

Rémi Denis-Courmont committed 2 years ago

Commit c3dbbb31 parent 5939f721 file · +2 −3Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/riscv/flacdsp_rvv.S+2−3
@@ -163,12 +163,11 @@ func ff_flac_wasted33_rvv, zve64x · 162 unmodified lines
163163 ret
164164
165165 2: // Pessimistic case: wasted >= 32
166− vsetvli t0, a3, e32, m4, ta, ma
166+ vsetvli t0, a3, e64, m8, ta, ma
167167 vle32.v v8, (a1)
168168 sub a3, a3, t0
169− vwcvtu.x.x.v v16, v8
169+ vsext.vf2 v16, v8
170170 sh2add a1, t0, a1
171− vsetvli zero, zero, e64, m8, ta, ma
172171 vsll.vx v16, v16, a2
173172 vse64.v v16, (a0)
174173 sh3add a0, t0, a0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t