This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] MIPS: supported mips cpu names update.


Hi Graham, 

I just realise that soon after I hit the send button.  I've just
re-submitted the patch again, but clearly it wasn't quick enough for you
smart people to pick up the missing bits..  :D

David.

On Tue, 2005-10-11 at 14:40 +0100, Graham Stott wrote:
> Hi David,
> 
> If the enum processor_type in mips.h is changed then it's also 
> necessary to update the define_attr "cpu" definition in mips.md 
> to match and visa-versa.
> 
> Cheers
> Graham
> 
> --- David Ung <davidu@mips.com> wrote:
> 
> > 
> > This patch adds names/alias of cpus currently supported by GCC.  The new
> > MIPS cpus are 4kec/4kem/4kep/24kec/24kef/24kex/34kc/34kf/34kx.  
> > Since this is mainly a documentation type patch, would it be ok for
> > mainline?
> > 
> > David.
> > 
> > 	* config/mips/mips.h (processor_type): Removed PROCESSOR_24K, add
> > 	PROCESSOR_24KC and PROCESSOR_24KF.
> > 	* config/mips/mips.c (mips_cpu_info_table): Add processor names
> > 	and aliases for 4kec/4kem/4kep/24kec/24kef/24kex/34kc/34kf/34kx.
> > 	(mips_rtx_cost_data): Add costs for the 24kc.
> > 	* doc/invoke.texi (MIPS Options): Updated.
> > 
> > Index: gcc/config/mips/mips.h
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
> > retrieving revision 1.404
> > diff -c -p -b -r1.404 mips.h
> > *** gcc/config/mips/mips.h	6 Aug 2005 13:26:12 -0000	1.404
> > --- gcc/config/mips/mips.h	11 Oct 2005 13:10:02 -0000
> > *************** enum processor_type {
> > *** 38,44 ****
> >     PROCESSOR_5KC,
> >     PROCESSOR_5KF,
> >     PROCESSOR_20KC,
> > !   PROCESSOR_24K,
> >     PROCESSOR_24KX,
> >     PROCESSOR_M4K,
> >     PROCESSOR_R3900,
> > --- 38,45 ----
> >     PROCESSOR_5KC,
> >     PROCESSOR_5KF,
> >     PROCESSOR_20KC,
> > !   PROCESSOR_24KC,
> > !   PROCESSOR_24KF,
> >     PROCESSOR_24KX,
> >     PROCESSOR_M4K,
> >     PROCESSOR_R3900,
> > 
> > Index: gcc/config/mips/mips.c
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
> > retrieving revision 1.521
> > diff -c -p -b -r1.521 mips.c
> > *** gcc/config/mips/mips.c	26 Aug 2005 13:15:14 -0000	1.521
> > --- gcc/config/mips/mips.c	11 Oct 2005 13:10:24 -0000
> > *************** const struct mips_cpu_info mips_cpu_info
> > *** 749,758 ****
> >   
> >     /* MIPS32 Release 2 */
> >     { "m4k", PROCESSOR_M4K, 33 },
> > !   { "24k", PROCESSOR_24K, 33 },
> > !   { "24kc", PROCESSOR_24K, 33 },  /* 24K  no FPU */
> > !   { "24kf", PROCESSOR_24K, 33 },  /* 24K 1:2 FPU */
> >     { "24kx", PROCESSOR_24KX, 33 }, /* 24K 1:1 FPU */
> >   
> >     /* MIPS64 */
> >     { "5kc", PROCESSOR_5KC, 64 },
> > --- 749,766 ----
> >   
> >     /* MIPS32 Release 2 */
> >     { "m4k", PROCESSOR_M4K, 33 },
> > !   { "4kec", PROCESSOR_4KC, 33 },
> > !   { "4kem", PROCESSOR_4KC, 33 },
> > !   { "4kep", PROCESSOR_4KP, 33 },
> > !   { "24kc", PROCESSOR_24KC, 33 },  /* 24K  no FPU */
> > !   { "24kf", PROCESSOR_24KF, 33 },  /* 24K 1:2 FPU */
> >     { "24kx", PROCESSOR_24KX, 33 },  /* 24K 1:1 FPU */
> > +   { "24kec", PROCESSOR_24KC, 33 }, /* 24K with DSP */
> > +   { "24kef", PROCESSOR_24KF, 33 },
> > +   { "24kex", PROCESSOR_24KX, 33 },
> > +   { "34kc", PROCESSOR_24KC, 33 },  /* 34K with MT/DSP */
> > +   { "34kf", PROCESSOR_24KF, 33 },
> > +   { "34kx", PROCESSOR_24KX, 33 },
> >   
> >     /* MIPS64 */
> >     { "5kc", PROCESSOR_5KC, 64 },
> > *************** static struct mips_rtx_cost_data const m
> > *** 846,852 ****
> >       { /* 20KC */
> >         DEFAULT_COSTS
> >       },
> > !     { /* 24k */
> >         COSTS_N_INSNS (8),            /* fp_add */
> >         COSTS_N_INSNS (8),            /* fp_mult_sf */
> >         COSTS_N_INSNS (10),           /* fp_mult_df */
> > --- 854,869 ----
> >       { /* 20KC */
> >         DEFAULT_COSTS
> >       },
> > !     { /* 24KC */
> > !       SOFT_FP_COSTS,
> > !       COSTS_N_INSNS (5),            /* int_mult_si */
> > !       COSTS_N_INSNS (5),            /* int_mult_di */
> > !       COSTS_N_INSNS (41),           /* int_div_si */
> > !       COSTS_N_INSNS (41),           /* int_div_di */
> > !                        1,           /* branch_cost */
> > !                        4            /* memory_latency */
> > !     },
> > !     { /* 24KF */
> >         COSTS_N_INSNS (8),            /* fp_add */
> >         COSTS_N_INSNS (8),            /* fp_mult_sf */
> >         COSTS_N_INSNS (10),           /* fp_mult_df */
> > *************** static struct mips_rtx_cost_data const m
> > *** 859,865 ****
> >                          1,           /* branch_cost */
> >                          4            /* memory_latency */
> >       },
> > !     { /* 24kx */
> >         COSTS_N_INSNS (4),            /* fp_add */
> >         COSTS_N_INSNS (4),            /* fp_mult_sf */
> >         COSTS_N_INSNS (5),            /* fp_mult_df */
> > --- 876,882 ----
> >                          1,           /* branch_cost */
> >                          4            /* memory_latency */
> >       },
> > !     { /* 24KX */
> >         COSTS_N_INSNS (4),            /* fp_add */
> >         COSTS_N_INSNS (4),            /* fp_mult_sf */
> >         COSTS_N_INSNS (5),            /* fp_mult_df */
> > 
> > Index: gcc/doc/invoke.texi
> > ===================================================================
> > RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
> > retrieving revision 1.686
> > diff -c -p -b -r1.686 invoke.texi
> > *** gcc/doc/invoke.texi	8 Oct 2005 18:17:19 -0000	1.686
> > --- gcc/doc/invoke.texi	11 Oct 2005 13:28:45 -0000
> > *************** The ISA names are:
> > *** 10041,10049 ****
> >   @samp{mips32}, @samp{mips32r2}, and @samp{mips64}.
> >   The processor names are:
> >   @samp{4kc}, @samp{4km}, @samp{4kp},
> >   @samp{5kc}, @samp{5kf},
> >   @samp{20kc},
> > ! @samp{24k}, @samp{24kc}, @samp{24kf}, @samp{24kx},
> >   @samp{m4k},
> >   @samp{orion},
> >   @samp{r2000}, @samp{r3000}, @samp{r3900}, @samp{r4000}, @samp{r4400},
> > --- 10041,10052 ----
> >   @samp{mips32}, @samp{mips32r2}, and @samp{mips64}.
> >   The processor names are:
> >   @samp{4kc}, @samp{4km}, @samp{4kp},
> > + @samp{4kec}, @samp{4kem}, @samp{4kep},
> >   @samp{5kc}, @samp{5kf},
> >   @samp{20kc},
> > ! @samp{24kc}, @samp{24kf} (1:2 FPU), @samp{24kx} (1:1 FPU),
> > ! @samp{24kec} (DSP ASE), @samp{24kef}, @samp{24kex},
> > ! @samp{34kc}, @samp{34kf}, @samp{34kx},
> >   @samp{m4k},
> >   @samp{orion},
> >   @samp{r2000}, @samp{r3000}, @samp{r3900}, @samp{r4000}, @samp{r4400},
> > 
> > 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]