在 2021/7/23 17:23, yinshiyou...@loongson.cn 写道:
> -----原始邮件-----
&gt; 发件人: "Jiaxun Yang" <jiaxun.y...@flygoat.com>
&gt; 发送时间: 2021-07-23 10:34:37 (星期五)
&gt; 收件人: ffmpeg-devel@ffmpeg.org
&gt; 抄送:
&gt; 主题: Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check
&gt;
&gt;
&gt; 在 2021/7/23 上午9:39, Jin Bo 写道:
&gt; &gt; pxor is loongson media extension instruction, it's not
&gt; &gt; supported yet on upstream gcc complier. Disable mmi to
&gt; &gt; avoid build error if the compiler does not support it.
&gt;
&gt; Hi Bo,
&gt;
&gt; Well I have to repeat that your statement is *NOT* true.
&gt;
&gt; Upstream GCC *DO* support Loongson MMI.
&gt;
&gt; Disabling Loongson MMI just because different instruction naming is
&gt; unacceptable from my aspect, note that beside usage in your company we
&gt; have other distros like Debian and AOSC, they have strict upstream policy .
&gt;
&gt; My suggestion is to use instruction macro to workaround the problem.
&gt;
&gt; Thanks.
&gt;
&gt; - Jiaxun
&gt;

Let's adjust the commit message and  make it merged or abandon this patch.
The main purpose of this patch is to avoid compilation error of ‘pxor’.
The best solution of 'pxor' compilation error is to add support in compiler.

I'll try to come up a workaound in next few days.

Thanks.

- Jiaxun


&gt; &gt; ---
&gt; &gt;   configure | 2 +-
&gt; &gt;   1 file changed, 1 insertion(+), 1 deletion(-)
&gt; &gt;
&gt; &gt; diff --git a/configure b/configure
&gt; &gt; index bb6b096414..ec536dea40 100755
&gt; &gt; --- a/configure
&gt; &gt; +++ b/configure
&gt; &gt; @@ -5963,7 +5963,7 @@ elif enabled mips; then
&gt; &gt;       enabled loongson3 &amp;&amp; check_inline_asm loongson3 '"gsldxc1 $f0, 0($2, 
$3)"' '-mloongson-ext' &amp;&amp; append MMIFLAGS '-mloongson-ext'
&gt; &gt;
&gt; &gt;       # MMI can be detected at runtime too
&gt; &gt; -    enabled mmi &amp;&amp; check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' 
'-mloongson-mmi' &amp;&amp; append MMIFLAGS '-mloongson-mmi'
&gt; &gt; +    enabled mmi &amp;&amp; check_inline_asm mmi '"pxor $f0, $f0, $f0"' 
'-mloongson-mmi' &amp;&amp; append MMIFLAGS '-mloongson-mmi'
&gt; &gt;
&gt; &gt;       if enabled bigendian &amp;&amp; enabled msa; then
&gt; &gt;           disable msa

</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