From cf768d70b2beb8d16e558094ed518405b3046661 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 24 Mar 2004 10:05:50 +0000 Subject: [PATCH] mips.h (PROCESSOR_R4130): New processor_type. * config/mips/mips.h (PROCESSOR_R4130): New processor_type. (TARGET_MIPS4130): New macro. (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16. * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry. (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal with PROCESSOR_R4130. * config/mips/mips.md (define_attr cpu): Add r4130. * doc/invoke.texi: Document vr4130 as a supported MIPS architecture. From-SVN: r79904 --- gcc/ChangeLog | 11 +++++++++++ gcc/config/mips/mips.c | 2 ++ gcc/config/mips/mips.h | 3 +++ gcc/config/mips/mips.md | 2 +- gcc/doc/invoke.texi | 2 +- 5 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3ce705f5f5..985a7424d72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2004-03-24 Richard Sandiford + + * config/mips/mips.h (PROCESSOR_R4130): New processor_type. + (TARGET_MIPS4130): New macro. + (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16. + * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry. + (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal + with PROCESSOR_R4130. + * config/mips/mips.md (define_attr cpu): Add r4130. + * doc/invoke.texi: Document vr4130 as a supported MIPS architecture. + 2004-03-24 Maciej W. Rozycki Richard Sandiford diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index c11a65960a2..5c1ce7159ae 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -646,6 +646,7 @@ const struct mips_cpu_info mips_cpu_info_table[] = { { "vr4100", PROCESSOR_R4100, 3 }, { "vr4111", PROCESSOR_R4111, 3 }, { "vr4120", PROCESSOR_R4120, 3 }, + { "vr4130", PROCESSOR_R4130, 3 }, { "vr4300", PROCESSOR_R4300, 3 }, { "r4400", PROCESSOR_R4000, 3 }, /* = r4000 */ { "r4600", PROCESSOR_R4600, 3 }, @@ -4657,6 +4658,7 @@ override_options (void) case PROCESSOR_R4100: case PROCESSOR_R4111: case PROCESSOR_R4120: + case PROCESSOR_R4130: target_flags |= MASK_SOFT_FLOAT; break; diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 7622cb32e66..7b079d8d6da 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -57,6 +57,7 @@ enum processor_type { PROCESSOR_R4100, PROCESSOR_R4111, PROCESSOR_R4120, + PROCESSOR_R4130, PROCESSOR_R4300, PROCESSOR_R4600, PROCESSOR_R4650, @@ -321,6 +322,7 @@ extern const struct mips_cpu_info *mips_tune_info; #define TARGET_MIPS3900 (mips_arch == PROCESSOR_R3900) #define TARGET_MIPS4000 (mips_arch == PROCESSOR_R4000) #define TARGET_MIPS4120 (mips_arch == PROCESSOR_R4120) +#define TARGET_MIPS4130 (mips_arch == PROCESSOR_R4130) #define TARGET_MIPS5400 (mips_arch == PROCESSOR_R5400) #define TARGET_MIPS5500 (mips_arch == PROCESSOR_R5500) #define TARGET_MIPS7000 (mips_arch == PROCESSOR_R7000) @@ -883,6 +885,7 @@ extern const struct mips_cpu_info *mips_tune_info; /* ISA has three operand multiply instructions that the result from a 4th operand and puts the result in an accumulator. */ #define ISA_HAS_MACC ((TARGET_MIPS4120 && !TARGET_MIPS16) \ + || (TARGET_MIPS4130 && !TARGET_MIPS16) \ || TARGET_MIPS5400 \ || TARGET_MIPS5500 \ || TARGET_SR71K \ diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index e0b2e9184d5..45a106ac1e6 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -219,7 +219,7 @@ ;; Attribute describing the processor. This attribute must match exactly ;; with the processor_type enumeration in mips.h. (define_attr "cpu" - "default,4kc,5kc,20kc,m4k,r3000,r3900,r6000,r4000,r4100,r4111,r4120,r4300,r4600,r4650,r5000,r5400,r5500,r7000,r8000,r9000,sb1,sr71000" + "default,4kc,5kc,20kc,m4k,r3000,r3900,r6000,r4000,r4100,r4111,r4120,r4130,r4300,r4600,r4650,r5000,r5400,r5500,r7000,r8000,r9000,sb1,sr71000" (const (symbol_ref "mips_tune"))) ;; The type of hardware hazard associated with this instruction. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 267c3027d3d..59e02a04200 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -7757,7 +7757,7 @@ The processor names are: @samp{rm9000}, @samp{orion}, @samp{sb1}, -@samp{vr4100}, @samp{vr4111}, @samp{vr4120}, @samp{vr4300}, +@samp{vr4100}, @samp{vr4111}, @samp{vr4120}, @samp{vr4130}, @samp{vr4300}, @samp{vr5000}, @samp{vr5400} and @samp{vr5500}. The special value @samp{from-abi} selects the most compatible architecture for the selected ABI (that is,