diff options
author | Jin Bo <jinbo@loongson.cn> | 2021-08-03 12:05:21 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-08-10 16:16:06 +0200 |
commit | 903c5d58f0311b12bd8127a545f1bf8549307f5c (patch) | |
tree | f783657996c4d7c47019a82f8ccc24aa3dba742b | |
parent | bff7d662d728bca79ccb2980179e5a9aed2d83d3 (diff) |
configure: [loongson] adjust MMI check in configure
After standardizing the use of 'pxor' in commit 'ebedd26', FFmpeg
build failed with upstream compiler, for 'pxor' is not supported
in time. This patch helps to workaround the build failure by
checking whether 'pxor' is supported during configuration, if not,
MMI will be disabled.
Reviewed-by: yinshiyou-hf@loongson.cn
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5947,7 +5947,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 |