mbox

[FFmpeg-devel,v3,0/4] avcodec Loongson-2 MMI fixes

Message ID 20210723055344.21961-1-jiaxun.yang@flygoat.com
Headers show

Message

Jiaxun Yang July 23, 2021, 5:53 a.m. UTC
Get MMI optimizations build for Loongson-2 again.
Tested on Loongson-2 and Loongson-3A.

---
v2: Rebase and add patch 5
v3: Drop load pair patch and collect review tags
---

Jiaxun Yang (4):
  avutil/mips: Use MMI_{L, S}QC1 macro in {SAVE, RECOVER}_REG
  avcodec/mips: Use MMI marcos to replace Loongson3 instructions
  avutil/mips: Use $at as MMI macro temporary register
  avcodec/mips: cabac.h provide fallback for wsbh instruction

 libavcodec/mips/cabac.h           |  24 +++
 libavcodec/mips/h264chroma_mmi.c  |  28 +++-
 libavcodec/mips/h264dsp_mmi.c     |   8 +-
 libavcodec/mips/hevcdsp_mmi.c     | 251 ++++++++++++------------------
 libavcodec/mips/hpeldsp_mmi.c     |   1 +
 libavcodec/mips/simple_idct_mmi.c |  49 +++---
 libavcodec/mips/vp3dsp_idct_mmi.c |  11 +-
 libavcodec/mips/vp8dsp_mmi.c      | 100 +++++-------
 libavcodec/mips/vp9_mc_mmi.c      | 128 ++++++---------
 libavutil/mips/mmiutils.h         | 140 ++++++++++-------
 10 files changed, 354 insertions(+), 386 deletions(-)