]> git.lizzy.rs Git - rust.git/commit
librustc_back: enable fpxx on 32-bit hardfloat mips targets
authorJames Cowgill <jcowgill@debian.org>
Thu, 8 Mar 2018 11:53:19 +0000 (11:53 +0000)
committerJames Cowgill <jcowgill@debian.org>
Thu, 8 Mar 2018 13:16:02 +0000 (13:16 +0000)
commitfccaf252df7d5426ae5b0d8b8359357fe526fc58
tree058f494ac612d81842f70bde873a8cf0627a7f24
parentf53f2fa2e894c4709d7b09995331f30c596d0724
librustc_back: enable fpxx on 32-bit hardfloat mips targets

See this page for details about FPXX:
https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

Using FPXX is the most compatible floating point mode available and
allows the generated code to work in both FR0 and FR1 modes of the
processor. Using MSA (MIPS SIMD) requires FR1, so to use any MSA code we
need a compatible floating point mode.

This commit also sets nooddspreg (disabling the use of odd numbered
single precision float registers) as recommended when enabling FPXX.
src/librustc_back/target/mips_unknown_linux_gnu.rs
src/librustc_back/target/mipsel_unknown_linux_gnu.rs