[FFmpeg-devel] [PATCH] configure: [loongson] adjust MMI check in configure

Jin Bo jinbo at loongson.cn
Mon Aug 2 12:50:57 EEST 2021


After standardizing usage of 'pxor' in commit 'ebedd26', FFmpeg
build failed with upstream compiler where pxor is untimely
supported. This patch help to workaround this build failure
by checking pxor in configure. When using upstream compiler
where pxor is unsupported, MMI will be disabled.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 94b30afe74..2aea0f841a 100755
--- a/configure
+++ b/configure
@@ -5951,7 +5951,7 @@ elif enabled mips; then
     enabled loongson3 && check_inline_asm loongson3 '"gsldxc1 $f0, 0($2, $3)"' '-mloongson-ext' && append MMIFLAGS '-mloongson-ext'
 
     # MMI can be detected at runtime too
-    enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' '-mloongson-mmi' && append MMIFLAGS '-mloongson-mmi'
+    enabled mmi && check_inline_asm mmi '"pxor $f0, $f0, $f0"' '-mloongson-mmi' && append MMIFLAGS '-mloongson-mmi'
 
     if enabled bigendian && enabled msa; then
         disable msa
-- 
2.20.1



More information about the ffmpeg-devel mailing list