> -----原始邮件-----
&gt; 发件人: "Jin Bo" <ji...@loongson.cn>
&gt; 发送时间: 2021-05-28 10:04:41 (星期五)
&gt; 收件人: ffmpeg-devel@ffmpeg.org
&gt; 抄送: "Jin Bo" <ji...@loongson.cn>
&gt; 主题: [FFmpeg-devel] [PATCH 3/3] libavcodec/mips: Fix fate errors reported 
by clang
&gt; 
&gt; The data width of gsldrc1/gsldlc1 should be 8 bytes wide.
&gt; 
&gt; Signed-off-by: Jin Bo <ji...@loongson.cn>
&gt; ---
&gt;  libavcodec/mips/vp9_mc_mmi.c | 16 ++++++++--------
&gt;  1 file changed, 8 insertions(+), 8 deletions(-)
&gt; 
&gt; diff --git a/libavcodec/mips/vp9_mc_mmi.c b/libavcodec/mips/vp9_mc_mmi.c
&gt; index fa65ff5..812f7a6 100644
&gt; --- a/libavcodec/mips/vp9_mc_mmi.c
&gt; +++ b/libavcodec/mips/vp9_mc_mmi.c
&gt; @@ -83,9 +83,9 @@ static void convolve_horiz_mmi(const uint8_t *src, 
int32_t src_stride,
&gt;      __asm__ volatile (
&gt;          "move       %[tmp1],    %[width]                   \n\t"
&gt;          "pxor       %[ftmp0],   %[ftmp0],    %[ftmp0]      \n\t"
&gt; -        "gsldlc1    %[filter1], 0x03(%[filter])            \n\t"
&gt; +        "gsldlc1    %[filter1], 0x07(%[filter])            \n\t"
&gt;          "gsldrc1    %[filter1], 0x00(%[filter])            \n\t"
&gt; -        "gsldlc1    %[filter2], 0x0b(%[filter])            \n\t"
&gt; +        "gsldlc1    %[filter2], 0x0f(%[filter])            \n\t"
&gt;          "gsldrc1    %[filter2], 0x08(%[filter])            \n\t"
&gt;          "li         %[tmp0],    0x07                       \n\t"
&gt;          "dmtc1      %[tmp0],    %[ftmp13]                  \n\t"
&gt; @@ -158,9 +158,9 @@ static void convolve_vert_mmi(const uint8_t *src, 
int32_t src_stride,
&gt;  
&gt;      __asm__ volatile (
&gt;          "pxor       %[ftmp0],    %[ftmp0],   %[ftmp0]      \n\t"
&gt; -        "gsldlc1    %[ftmp4],    0x03(%[filter])           \n\t"
&gt; +        "gsldlc1    %[ftmp4],    0x07(%[filter])           \n\t"
&gt;          "gsldrc1    %[ftmp4],    0x00(%[filter])           \n\t"
&gt; -        "gsldlc1    %[ftmp5],    0x0b(%[filter])           \n\t"
&gt; +        "gsldlc1    %[ftmp5],    0x0f(%[filter])           \n\t"
&gt;          "gsldrc1    %[ftmp5],    0x08(%[filter])           \n\t"
&gt;          "punpcklwd  %[filter10], %[ftmp4],   %[ftmp4]      \n\t"
&gt;          "punpckhwd  %[filter32], %[ftmp4],   %[ftmp4]      \n\t"
&gt; @@ -254,9 +254,9 @@ static void convolve_avg_horiz_mmi(const uint8_t *src, 
int32_t src_stride,
&gt;      __asm__ volatile (
&gt;          "move       %[tmp1],    %[width]                   \n\t"
&gt;          "pxor       %[ftmp0],   %[ftmp0],    %[ftmp0]      \n\t"
&gt; -        "gsldlc1    %[filter1], 0x03(%[filter])            \n\t"
&gt; +        "gsldlc1    %[filter1], 0x07(%[filter])            \n\t"
&gt;          "gsldrc1    %[filter1], 0x00(%[filter])            \n\t"
&gt; -        "gsldlc1    %[filter2], 0x0b(%[filter])            \n\t"
&gt; +        "gsldlc1    %[filter2], 0x0f(%[filter])            \n\t"
&gt;          "gsldrc1    %[filter2], 0x08(%[filter])            \n\t"
&gt;          "li         %[tmp0],    0x07                       \n\t"
&gt;          "dmtc1      %[tmp0],    %[ftmp13]                  \n\t"
&gt; @@ -340,9 +340,9 @@ static void convolve_avg_vert_mmi(const uint8_t *src, 
int32_t src_stride,
&gt;  
&gt;      __asm__ volatile (
&gt;          "pxor       %[ftmp0],    %[ftmp0],   %[ftmp0]      \n\t"
&gt; -        "gsldlc1    %[ftmp4],    0x03(%[filter])           \n\t"
&gt; +        "gsldlc1    %[ftmp4],    0x07(%[filter])           \n\t"
&gt;          "gsldrc1    %[ftmp4],    0x00(%[filter])           \n\t"
&gt; -        "gsldlc1    %[ftmp5],    0x0b(%[filter])           \n\t"
&gt; +        "gsldlc1    %[ftmp5],    0x0f(%[filter])           \n\t"
&gt;          "gsldrc1    %[ftmp5],    0x08(%[filter])           \n\t"
&gt;          "punpcklwd  %[filter10], %[ftmp4],   %[ftmp4]      \n\t"
&gt;          "punpckhwd  %[filter32], %[ftmp4],   %[ftmp4]      \n\t"
&gt; -- 
&gt; 2.1.0
&gt; 

LGTM.</ji...@loongson.cn></ji...@loongson.cn></ji...@loongson.cn>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to