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

Unified · Split

libavcodec/riscv/flacdsp_rvv.S+2−3
@@ -163,12 +163,11 @@ func ff_flac_wasted33_rvv, zve64x · 162 unmodified lines
163 ret163 ret
164 164
1652: // Pessimistic case: wasted >= 321652: // Pessimistic case: wasted >= 32
166 vsetvli t0, a3, e32, m4, ta, ma166 vsetvli t0, a3, e64, m8, ta, ma
167 vle32.v v8, (a1)167 vle32.v v8, (a1)
168 sub a3, a3, t0168 sub a3, a3, t0
169 vwcvtu.x.x.v v16, v8169 vsext.vf2 v16, v8
170 sh2add a1, t0, a1170 sh2add a1, t0, a1
171 vsetvli zero, zero, e64, m8, ta, ma
172 vsll.vx v16, v16, a2171 vsll.vx v16, v16, a2
173 vse64.v v16, (a0)172 vse64.v v16, (a0)
174 sh3add a0, t0, a0173 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