> -----原始邮件-----
&gt; 发件人: "Jiaxun Yang" <jiaxun.y...@flygoat.com>
&gt; 发送时间: 2021-07-21 17:39:22 (星期三)
&gt; 收件人: ffmpeg-devel@ffmpeg.org
&gt; 抄送: yinshiyou...@loongson.cn, "Jin Bo" <ji...@loongson.cn>, "Jiaxun Yang" 
<jiaxun.y...@flygoat.com>
&gt; 主题: [FFmpeg-devel] [PATCH] Revert "libavcodec/mips: Fix specification of 
instruction name"
&gt; 
&gt; This reverts commit ebedd26eefe2ff4bbf5a358907c4e8e4b0d62eae.
&gt; 
&gt; The original commit states that "gcc supports both of them,
&gt; clang only supports the second type", it's obviousely not ture.
&gt; 
&gt; Error: opcode not supported on this processor: loongson3a(mips64r2) `pxor 
$f3,$f3,$f3'
&gt; 
&gt; Tested with latest GCC11 and binutils 2.37.
&gt; 
&gt; The statement is not true. I guess you may have a internal toolchain 
modified
&gt; for this purpose, but you're not the sole user of FFmpeg, you're breaking
&gt; other users like Debian. Also I can't find clang with Loongson extention
&gt; support every where.
&gt; 
&gt; I'm reverting this for now. If you would like to implement it, another 
approach
&gt; could be make it as marco in mmiutils.h and filter it with #if 
define(__clang__).
&gt; 
&gt; Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
&gt; Cc: Jin Bo <ji...@loongson.cn>
&gt; Cc: yinshiyou...@loongson.cn

Thank you for your feedback, following are my opinions:
1)according to the instruction mannul, we should use 'pxor' to operate float 
register.
2) MMI is loongson media extention,compiler from upstream not supported yet is 
true.
 If you are using FFmpeg on loongson platform, you can try to get compiler from 
 http://www.loongnix.org/index.php/GCC or use loongson repository download.
 Loongnix-1.0 :http://ftp.loongnix.org/os/loongnix/1.0/os/
 Loongnix-20-mips64el:http://ftp.loongnix.org/os/loongnix/20/mips64el
3) If you are using on other mips platform which MMI is unsupported, and MMI 
havn't disabled automaticlly.
 we will fix it soon.
4) on the safe side, I suggest to add pxor instruction check in configure check.
</ji...@loongson.cn></jiaxun.y...@flygoat.com></jiaxun.y...@flygoat.com></ji...@loongson.cn></jiaxun.y...@flygoat.com>
_______________________________________________
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