Fix build error in MIPS SIMD when compiling with -mfpxx
authorJames Cowgill <james410@cowgill.org.uk>
Sat, 15 Aug 2015 12:30:14 +0000 (13:30 +0100)
committerMike Hommey <glandium@debian.org>
Sun, 14 Feb 2016 09:25:51 +0000 (09:25 +0000)
commit91b0205c8081c86ad02e5982a1bddbdee84ecada
treedbc85d2a24000c19f06d0c936d5adcdf7f97138b
parent101edecca4a0425f9ea33badb1c8b1099b35e812
Fix build error in MIPS SIMD when compiling with -mfpxx

When compiled with -mfpxx (which is now the default on Debian), there are
some restrictions on the use of odd-numbered FP registers. More details
about FPXX can be found here:
https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

This commit simply changes all uses of FP registers to an even-numbered
equivalent like this:
 f0 -> f0
 f1 -> f2
 f2 -> f4
 ...
 f8 -> f16

This commit should have no observable effect except that the MIPS assembly
will now compile with -mfpxx.

Gbp-Pq: Topic fixes
Gbp-Pq: Name Fix-build-error-in-MIPS-SIMD-when-compiling-with-mfp.patch
media/libjpeg/simd/jsimd_mips_dspr2.S