From 8ced5d2def763f1aa9142f6925836f05b825d8ba Mon Sep 17 00:00:00 2001 From: Robert Suchanek Date: Wed, 22 Jul 2015 12:45:51 +0000 Subject: [PATCH] Add -march=interaptiv. gcc/ * config/mips/mips-cpus.def (interaptiv): Define. * config/mips/mips-tables.opt: Regenerate. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to -mips32r2. (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp. * doc/invoke.texi (-march=@var{arch}): Add interaptiv. From-SVN: r226065 --- gcc/ChangeLog | 9 ++++++++ gcc/config/mips/mips-cpus.def | 2 ++ gcc/config/mips/mips-tables.opt | 39 ++++++++++++++++++--------------- gcc/config/mips/mips.h | 6 +++-- gcc/doc/invoke.texi | 1 + 5 files changed, 37 insertions(+), 20 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad0fb04bbc2..e0106d3350b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-07-22 Robert Suchanek + + * config/mips/mips-cpus.def (interaptiv): Define. + * config/mips/mips-tables.opt: Regenerate. + * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to + -mips32r2. + (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp. + * doc/invoke.texi (-march=@var{arch}): Add interaptiv. + 2015-07-22 Jiong Wang PR target/63521 diff --git a/gcc/config/mips/mips-cpus.def b/gcc/config/mips/mips-cpus.def index fb4bae09a9f..63a0d6e9251 100644 --- a/gcc/config/mips/mips-cpus.def +++ b/gcc/config/mips/mips-cpus.def @@ -147,6 +147,8 @@ MIPS_CPU ("1004kf2_1", PROCESSOR_24KF2_1, 33, 0) MIPS_CPU ("1004kf", PROCESSOR_24KF2_1, 33, 0) MIPS_CPU ("1004kf1_1", PROCESSOR_24KF1_1, 33, 0) +MIPS_CPU ("interaptiv", PROCESSOR_24KF2_1, 33, 0) + /* MIPS32 Release 5 processors. */ MIPS_CPU ("p5600", PROCESSOR_P5600, 36, PTF_AVOID_BRANCHLIKELY) diff --git a/gcc/config/mips/mips-tables.opt b/gcc/config/mips/mips-tables.opt index 59124a6506f..8c6c4b1111b 100644 --- a/gcc/config/mips/mips-tables.opt +++ b/gcc/config/mips/mips-tables.opt @@ -631,56 +631,59 @@ EnumValue Enum(mips_arch_opt_value) String(r1004kf1_1) Value(84) EnumValue -Enum(mips_arch_opt_value) String(p5600) Value(85) Canonical +Enum(mips_arch_opt_value) String(interaptiv) Value(85) Canonical EnumValue -Enum(mips_arch_opt_value) String(5kc) Value(86) Canonical +Enum(mips_arch_opt_value) String(p5600) Value(86) Canonical EnumValue -Enum(mips_arch_opt_value) String(r5kc) Value(86) +Enum(mips_arch_opt_value) String(5kc) Value(87) Canonical EnumValue -Enum(mips_arch_opt_value) String(5kf) Value(87) Canonical +Enum(mips_arch_opt_value) String(r5kc) Value(87) EnumValue -Enum(mips_arch_opt_value) String(r5kf) Value(87) +Enum(mips_arch_opt_value) String(5kf) Value(88) Canonical EnumValue -Enum(mips_arch_opt_value) String(20kc) Value(88) Canonical +Enum(mips_arch_opt_value) String(r5kf) Value(88) EnumValue -Enum(mips_arch_opt_value) String(r20kc) Value(88) +Enum(mips_arch_opt_value) String(20kc) Value(89) Canonical EnumValue -Enum(mips_arch_opt_value) String(sb1) Value(89) Canonical +Enum(mips_arch_opt_value) String(r20kc) Value(89) EnumValue -Enum(mips_arch_opt_value) String(sb1a) Value(90) Canonical +Enum(mips_arch_opt_value) String(sb1) Value(90) Canonical EnumValue -Enum(mips_arch_opt_value) String(sr71000) Value(91) Canonical +Enum(mips_arch_opt_value) String(sb1a) Value(91) Canonical EnumValue -Enum(mips_arch_opt_value) String(sr71k) Value(91) +Enum(mips_arch_opt_value) String(sr71000) Value(92) Canonical EnumValue -Enum(mips_arch_opt_value) String(xlr) Value(92) Canonical +Enum(mips_arch_opt_value) String(sr71k) Value(92) EnumValue -Enum(mips_arch_opt_value) String(loongson3a) Value(93) Canonical +Enum(mips_arch_opt_value) String(xlr) Value(93) Canonical EnumValue -Enum(mips_arch_opt_value) String(octeon) Value(94) Canonical +Enum(mips_arch_opt_value) String(loongson3a) Value(94) Canonical EnumValue -Enum(mips_arch_opt_value) String(octeon+) Value(95) Canonical +Enum(mips_arch_opt_value) String(octeon) Value(95) Canonical EnumValue -Enum(mips_arch_opt_value) String(octeon2) Value(96) Canonical +Enum(mips_arch_opt_value) String(octeon+) Value(96) Canonical EnumValue -Enum(mips_arch_opt_value) String(octeon3) Value(97) Canonical +Enum(mips_arch_opt_value) String(octeon2) Value(97) Canonical EnumValue -Enum(mips_arch_opt_value) String(xlp) Value(98) Canonical +Enum(mips_arch_opt_value) String(octeon3) Value(98) Canonical + +EnumValue +Enum(mips_arch_opt_value) String(xlp) Value(99) Canonical diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 37f5b54c8b1..505e111b969 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -722,7 +722,8 @@ struct mips_cpu_info { |march=r10000|march=r12000|march=r14000|march=r16000:-mips4} \ %{march=mips32|march=4kc|march=4km|march=4kp|march=4ksc:-mips32} \ %{march=mips32r2|march=m4k|march=4ke*|march=4ksd|march=24k* \ - |march=34k*|march=74k*|march=m14k*|march=1004k*: -mips32r2} \ + |march=34k*|march=74k*|march=m14k*|march=1004k* \ + |march=interaptiv: -mips32r2} \ %{march=mips32r3: -mips32r3} \ %{march=mips32r5|march=p5600: -mips32r5} \ %{march=mips32r6: -mips32r6} \ @@ -825,7 +826,8 @@ struct mips_cpu_info { #define BASE_DRIVER_SELF_SPECS \ MIPS_ISA_NAN2008_SPEC, \ "%{!mno-dsp: \ - %{march=24ke*|march=34kc*|march=34kf*|march=34kx*|march=1004k*: -mdsp} \ + %{march=24ke*|march=34kc*|march=34kf*|march=34kx*|march=1004k* \ + |march=interaptiv: -mdsp} \ %{march=74k*|march=m14ke*: %{!mno-dspr2: -mdspr2 -mdsp}}}" #define DRIVER_SELF_SPECS \ diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c6f84d40405..7c7831efd57 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17041,6 +17041,7 @@ The processor names are: @samp{34kc}, @samp{34kf2_1}, @samp{34kf1_1}, @samp{34kn}, @samp{74kc}, @samp{74kf2_1}, @samp{74kf1_1}, @samp{74kf3_2}, @samp{1004kc}, @samp{1004kf2_1}, @samp{1004kf1_1}, +@samp{interaptiv}, @samp{loongson2e}, @samp{loongson2f}, @samp{loongson3a}, @samp{m4k}, @samp{m14k}, @samp{m14kc}, @samp{m14ke}, @samp{m14kec}, -- 2.30.2