[FFmpeg-devel] [PATCH v1] configure: fix mmi check
Jin Bo
jinbo at loongson.cn
Fri Jul 23 04:39:00 EEST 2021
pxor is loongson media extension instruction, it's not
supported yet on upstream gcc complier. Disable mmi to
avoid build error if the compiler does not support it.
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index bb6b096414..ec536dea40 100755
--- a/configure
+++ b/configure
@@ -5963,7 +5963,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