[FFmpeg-devel] [PATCH 01/13] Rename mipsdspr1 to mipsdsp
Michael Niedermayer
michael at niedermayer.cc
Tue Nov 17 22:17:25 CET 2015
On Mon, Nov 16, 2015 at 02:57:07PM +0000, Vicente Olivert Riera wrote:
[...]
> index 9a736ce..0461a97 100755
> --- a/configure
> +++ b/configure
> @@ -380,7 +380,7 @@ Optimization options (experts only):
> --disable-yasm disable use of nasm/yasm assembly
> --disable-mips32r5 disable MIPS32R5 optimizations
> --disable-mips64r6 disable MIPS64R6 optimizations
> - --disable-mipsdspr1 disable MIPS DSP ASE R1 optimizations
> + --disable-mipsdsp disable MIPS DSP ASE R1 optimizations
> --disable-mipsdspr2 disable MIPS DSP ASE R2 optimizations
> --disable-msa disable MSA optimizations
> --disable-mipsfpu disable floating point MIPS optimizations
> @@ -1627,7 +1627,7 @@ ARCH_EXT_LIST_MIPS="
> mips32r2
> mips32r5
> mips64r6
> - mipsdspr1
> + mipsdsp
> mipsdspr2
> msa
> "
> @@ -2102,7 +2102,7 @@ setend_deps="arm"
> map 'eval ${v}_inline_deps=inline_asm' $ARCH_EXT_LIST_ARM
>
> mipsfpu_deps="mips"
> -mipsdspr1_deps="mips"
> +mipsdsp_deps="mips"
> mipsdspr2_deps="mips"
> mips32r2_deps="mips"
> mips32r5_deps="mips"
> @@ -4064,14 +4064,14 @@ elif enabled mips; then
> disable mips32r5
> disable mips64r6
> disable mipsfpu
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
> disable msa
> ;;
> 24kf*)
> disable mips32r5
> disable mips64r6
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
> disable msa
> ;;
> @@ -4101,14 +4101,14 @@ elif enabled mips; then
> ;;
> p5600)
> disable mips64r6
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
>
> check_cflags "-mtune=p5600"
> ;;
> i6400)
> disable mips32r5
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
> disable mipsfpu
>
> @@ -4120,7 +4120,7 @@ elif enabled mips; then
> disable mips32r2
> disable mips32r5
> disable mips64r6
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
> disable msa
> enable local_aligned_8 local_aligned_16 local_aligned_32
> @@ -4152,7 +4152,7 @@ elif enabled mips; then
> disable mips32r2
> disable mips32r5
> disable mips64r6
> - disable mipsdspr1
> + disable mipsdsp
> disable mipsdspr2
> disable msa
> ;;
> @@ -4944,13 +4944,13 @@ elif enabled mips; then
> enabled mmi && check_inline_asm mmi '"punpcklhw $f0, $f0, $f0"'
>
> # Enable minimum ISA based on selected options
> - if enabled mips64 && (enabled mipsdspr1 || enabled mipsdspr2); then
> + if enabled mips64 && (enabled mipsdsp || enabled mipsdspr2); then
> add_cflags "-mips64r2"
> add_asflags "-mips64r2"
> elif enabled mips64 && enabled mipsfpu && disabled loongson2 && disabled loongson3; then
> add_cflags "-mips64"
> add_asflags "-mips64"
> - elif enabled mipsdspr1 || enabled mipsdspr2; then
> + elif enabled mipsdsp || enabled mipsdspr2; then
> add_cflags "-mips32r2 -mfp32"
> add_asflags "-mips32r2 -mfp32"
> elif enabled mips32r5 || enabled mips64r6; then
> @@ -4964,8 +4964,8 @@ elif enabled mips; then
> enabled mips64r6 && check_cflags "-mips64r6 -msched-weight -mload-store-pairs -funroll-loops" &&
> check_ldflags "-mips64r6" &&
> check_inline_asm mips64r6 '"aui $t0, $t1, 1"'
> - enabled mipsdspr1 && add_cflags "-mdsp" && add_asflags "-mdsp" &&
> - check_inline_asm mipsdspr1 '"addu.qb $t0, $t1, $t2"'
> + enabled mipsdsp && add_cflags "-mdsp" && add_asflags "-mdsp" &&
> + check_inline_asm mipsdsp '"addu.qb $t0, $t1, $t2"'
> enabled mipsdspr2 && add_cflags "-mdspr2" && add_asflags "-mdspr2" &&
> check_inline_asm mipsdspr2 '"absq_s.qb $t0, $t1"'
> enabled mipsfpu && add_cflags "-mhard-float" && add_asflags "-mhard-float" &&
> @@ -4977,6 +4977,12 @@ elif enabled mips; then
> enabled mips64r6 && add_asflags "-mips64r6 -mfp64"
> enabled msa && add_asflags "-mmsa"
>
> + if enabled mipsdspr2; then
> + check_cflags "-mdspr2" &&
> + add_asflags "-mdspr2" &&
> + check_inline_asm mipsdspr2 '"absq_s.qb $t0, $t1"'
> + fi
> + fi
> elif enabled parisc; then
./configure: 4986: ./configure: Syntax error: "elif" unexpected
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
You can kill me, but you cannot change the truth.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151117/40321dca/attachment.sig>
More information about the ffmpeg-devel
mailing list