diff mbox series

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

Message ID 20210802095057.23026-1-jinbo@loongson.cn
State Superseded
Headers show
Series [FFmpeg-devel] configure: [loongson] adjust MMI check in configure | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

金波 Aug. 2, 2021, 9:50 a.m. UTC
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 mbox series

Patch

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