diff options
author | Prachi Godbole <prachi.godbole@imgtec.com> | 2015-07-22 12:46:09 +0000 |
---|---|---|
committer | Robert Suchanek <rts@gcc.gnu.org> | 2015-07-22 12:46:09 +0000 |
commit | 6dd74463ea50706652a42ac993ac3a2e22b86b58 (patch) | |
tree | d13d8ad31aeb588af6e7f7f946bcb1fe56e4067d /gcc/config/mips/mips.h | |
parent | 8ced5d2def763f1aa9142f6925836f05b825d8ba (diff) | |
download | gcc-6dd74463ea50706652a42ac993ac3a2e22b86b58.zip gcc-6dd74463ea50706652a42ac993ac3a2e22b86b58.tar.gz gcc-6dd74463ea50706652a42ac993ac3a2e22b86b58.tar.bz2 |
Add scheduling for M51xx core family.
gcc/
* config/mips/m5100.md: New file.
* config/mips/mips-cpus.def (m5100, m5101): Define.
* config/mips/mips-tables.opt: Regenerate.
* config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
-march=m5101 to -mips32r5.
(MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
(MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
!-msoft-float.
* config/mips/mips.md: Include m5100.md.
(processor): Add m5100.
* doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
From-SVN: r226066
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r-- | gcc/config/mips/mips.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 505e111..5bc562e 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -725,7 +725,7 @@ struct mips_cpu_info { |march=34k*|march=74k*|march=m14k*|march=1004k* \ |march=interaptiv: -mips32r2} \ %{march=mips32r3: -mips32r3} \ - %{march=mips32r5|march=p5600: -mips32r5} \ + %{march=mips32r5|march=p5600|march=m5100|march=m5101: -mips32r5} \ %{march=mips32r6: -mips32r6} \ %{march=mips64|march=5k*|march=20k*|march=sb1*|march=sr71000 \ |march=xlr: -mips64} \ @@ -749,7 +749,7 @@ struct mips_cpu_info { "%{mhard-float|msoft-float|mno-float|march=mips*:; \ march=vr41*|march=m4k|march=4k*|march=24kc|march=24kec \ |march=34kc|march=34kn|march=74kc|march=1004kc|march=5kc \ - |march=m14k*|march=octeon|march=xlr: -msoft-float; \ + |march=m14k*|march=m5101|march=octeon|march=xlr: -msoft-float; \ march=*: -mhard-float}" /* A spec condition that matches 32-bit options. It only works if @@ -772,7 +772,8 @@ struct mips_cpu_info { /* Infer a -mnan=2008 setting from a -mips argument. */ #define MIPS_ISA_NAN2008_SPEC \ - "%{mnan*:;mips32r6|mips64r6:-mnan=2008}" + "%{mnan*:;mips32r6|mips64r6:-mnan=2008;march=m51*: \ + %{!msoft-float:-mnan=2008}}" #if (MIPS_ABI_DEFAULT == ABI_O64 \ || MIPS_ABI_DEFAULT == ABI_N32 \ |