1. change mmi_deps from mips to loongson2/loongson3. 2. Use check_inline_asm_flags to ensure loongson3 can be enabled when cpu=generic.(If --cpu=loongson* is setted, cflags can be updated before doing compiler check. If --cpu=loongson* is not setted, check_inline_asm_flags is needed.) NOTE: runtime check for mmi will be added in next patch. --- configure | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/configure b/configure index eec43c3..4ff778a 100755 --- a/configure +++ b/configure @@ -2542,7 +2542,7 @@ mips64r6_deps="mips" mipsfpu_deps="mips" mipsdsp_deps="mips" mipsdspr2_deps="mips" -mmi_deps="mips" +mmi_deps_any="loongson2 loongson3" msa_deps="mipsfpu" msa2_deps="msa" @@ -5797,10 +5797,12 @@ EOF [ $target_os != win32 ] && enabled_all armv6t2 shared !pic && enable_weak_pic elif enabled mips; then - + # Use check_inline_asm_flags for loongson3 is in order to enable it in case of cpu=generic, + # but it is not recommended to enable loongson2. enabled loongson2 && check_inline_asm loongson2 '"dmult.g $8, $9, $10"' - enabled loongson3 && check_inline_asm loongson3 '"gsldxc1 $f0, 0($2, $3)"' - enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' + enabled loongson3 && check_inline_asm_flags loongson3 '"gsldxc1 $f0, 0($2, $3)"' '-march=loongson3a' + enabled loongson2 && enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' + enabled loongson3 && enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"' # Enable minimum ISA based on selected options if enabled mips64; then -- 2.1.0 _______________________________________________ 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".