]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips-tables.opt: Update.
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Thu, 22 Mar 2012 21:04:48 +0000 (21:04 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Thu, 22 Mar 2012 21:04:48 +0000 (21:04 +0000)
* config/mips/mips-tables.opt: Update.
* config/mips/mips.md (processor): Add xlp.
* config/mips/mips-cpus.def: Add xlp.
* config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
5KF for now.
* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
* doc/invoke.texi: Mention XLP.

From-SVN: r185712

gcc/ChangeLog
gcc/config/mips/mips-cpus.def
gcc/config/mips/mips-tables.opt
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/doc/invoke.texi

index c27c72108bd56bb3b174997d7c9d4a0e9e808c0f..45c1bd46b8e1c32e30454393c45777adf8bde798 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       * config/mips/mips-tables.opt: Update.
+       * config/mips/mips.md (processor): Add xlp.
+       * config/mips/mips-cpus.def: Add xlp.
+       * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
+       5KF for now.
+       * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
+       * doc/invoke.texi: Mention XLP.
+
 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/52547
index 98b915a1bd241a6ba97364a4d7234dfe8acdd22c..8271c4759c2091a7619aae26c9d80d9860d6ee6b 100644 (file)
@@ -147,3 +147,4 @@ MIPS_CPU ("loongson3a", PROCESSOR_LOONGSON_3A, 64, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("octeon", PROCESSOR_OCTEON, 65, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("octeon+", PROCESSOR_OCTEON, 65, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("octeon2", PROCESSOR_OCTEON2, 65, PTF_AVOID_BRANCHLIKELY)
+MIPS_CPU ("xlp", PROCESSOR_XLP, 65, PTF_AVOID_BRANCHLIKELY)
index 2d2c7f668fde79c8fb4f14801a5218a332f8a2f4..599fc12394acdc56705b9e682350fbf408938b06 100644 (file)
@@ -609,3 +609,6 @@ Enum(mips_arch_opt_value) String(octeon+) Value(81) Canonical
 EnumValue
 Enum(mips_arch_opt_value) String(octeon2) Value(82) Canonical
 
+EnumValue
+Enum(mips_arch_opt_value) String(xlp) Value(83) Canonical
+
index 008c7768a92b2a94812fba40bb458954b1444949..d48a46582b5881cfc51e10ecc775c02e398f274f 100644 (file)
@@ -1086,6 +1086,20 @@ static const struct mips_rtx_cost_data
     COSTS_N_INSNS (72),           /* int_div_di */
                     1,           /* branch_cost */
                     4            /* memory_latency */
+  },
+  { /* XLP */
+    /* These costs are the same as 5KF above.  */
+    COSTS_N_INSNS (4),            /* fp_add */
+    COSTS_N_INSNS (4),            /* fp_mult_sf */
+    COSTS_N_INSNS (5),            /* fp_mult_df */
+    COSTS_N_INSNS (17),           /* fp_div_sf */
+    COSTS_N_INSNS (32),           /* fp_div_df */
+    COSTS_N_INSNS (4),            /* int_mult_si */
+    COSTS_N_INSNS (11),           /* int_mult_di */
+    COSTS_N_INSNS (36),           /* int_div_si */
+    COSTS_N_INSNS (68),           /* int_div_di */
+                    1,           /* branch_cost */
+                    4            /* memory_latency */
   }
 };
 \f
index 3f284a863cf6a3b2d9cd29c637d548ec0e7fdbdf..bcb7c0436d0e4664ccdf9d9155a6bdf365c459ad 100644 (file)
@@ -701,7 +701,7 @@ struct mips_cpu_info {
        |march=34k*|march=74k*|march=1004k*: -mips32r2} \
      %{march=mips64|march=5k*|march=20k*|march=sb1*|march=sr71000 \
        |march=xlr|march=loongson3a: -mips64} \
-     %{march=mips64r2|march=octeon: -mips64r2} \
+     %{march=mips64r2|march=octeon|march=xlp: -mips64r2} \
      %{!march=*: -" MULTILIB_ISA_DEFAULT "}}"
 
 /* A spec that infers a -mhard-float or -msoft-float setting from an
index e5d716dfa4fec76fd847f71f70d93894d098764e..5d8f74f5e79787f96a8725730cfe527fe2a7c058 100644 (file)
@@ -65,6 +65,7 @@
   sb1a
   sr71000
   xlr
+  xlp
 ])
 
 (define_c_enum "unspec" [
index 82f0d30ce6f5bc5b6e7be65f3e3e842dba0666e3..b321dd82de48a6d92d690907f3f2784afd6fb1f8 100644 (file)
@@ -15284,8 +15284,8 @@ The processor names are:
 @samp{sb1},
 @samp{sr71000},
 @samp{vr4100}, @samp{vr4111}, @samp{vr4120}, @samp{vr4130}, @samp{vr4300},
-@samp{vr5000}, @samp{vr5400}, @samp{vr5500}
-and @samp{xlr}.
+@samp{vr5000}, @samp{vr5400}, @samp{vr5500},
+@samp{xlr} and @samp{xlp}.
 The special value @samp{from-abi} selects the
 most compatible architecture for the selected ABI (that is,
 @samp{mips1} for 32-bit ABIs and @samp{mips3} for 64-bit ABIs)@.