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: Old PPC patch - 405F, 440 support


On Thu, Aug 29, 2002 at 01:03:43PM -0400, David Edelsohn wrote:
> >>>>> Zack Weinberg writes:
> 
> Zack> Thanks.  From what you say, then, the patch does no particular good.
> Zack> Right now, I don't have time or resources to implement proper support
> Zack> for these CPUs; I will simply discard the changes.  I might come back
> Zack> to this later -- in the abstract, assuming proper implementation, are
> Zack> -mcpu=440 and/or =405f desirable features?
> 
> 	I don't have any objection to adding "440fp" to the
> processor_target_table[] list with PROCESSOR_PPC405 and no SOFT_FLOAT
> flag, along with the ASM_CPU_SPEC recognition.

Something like this, then?  (I assume you meant 405f)  The t-newas
patch may not be necessary, I only vaguely understand multilibs.

zw

	  * config/rs6000/rs6000.c (processor_target_table): Add 405f.
	  * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
	  * config/rs6000/t-newas (MULTILIB_MATCHES): Add 405 and 405f.

===================================================================
Index: config/rs6000/rs6000.c
--- config/rs6000/rs6000.c	23 Aug 2002 18:02:22 -0000	1.368
+++ config/rs6000/rs6000.c	29 Aug 2002 23:35:57 -0000
@@ -438,6 +438,9 @@ rs6000_override_options (default_cpu)
 	 {"405", PROCESSOR_PPC405,
 	    MASK_POWERPC | MASK_SOFT_FLOAT | MASK_NEW_MNEMONICS,
 	    POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
+	 {"405f", PROCESSOR_PPC405,
+	    MASK_POWERPC | MASK_NEW_MNEMONICS,
+	    POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
 	 {"505", PROCESSOR_MPCCORE,
 	    MASK_POWERPC | MASK_NEW_MNEMONICS,
 	    POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
===================================================================
Index: config/rs6000/rs6000.h
--- config/rs6000/rs6000.h	27 Aug 2002 14:55:42 -0000	1.225
+++ config/rs6000/rs6000.h	29 Aug 2002 23:35:58 -0000
@@ -69,6 +69,7 @@ Boston, MA 02111-1307, USA.  */
 %{mcpu=401: -mppc} \
 %{mcpu=403: -m403} \
 %{mcpu=405: -m405} \
+%{mcpu=405f: -m405} \
 %{mcpu=505: -mppc} \
 %{mcpu=601: -m601} \
 %{mcpu=602: -mppc} \
===================================================================
Index: config/rs6000/t-newas
--- config/rs6000/t-newas	17 May 2001 03:16:11 -0000	1.5
+++ config/rs6000/t-newas	29 Aug 2002 23:35:59 -0000
@@ -20,6 +20,7 @@ MULTILIB_DIRNAMES	= soft-float \
 			  common power powerpc
 
 MULTILIB_MATCHES	= msoft-float=mcpu?403 \
+			  msoft-float=mcpu?405 \
 			  mcpu?power=mpower \
 			  mcpu?power=mrios1 \
 			  mcpu?power=mcpu?rios1 \
@@ -35,6 +36,8 @@ MULTILIB_MATCHES	= msoft-float=mcpu?403 
 			  mcpu?powerpc=mcpu?604 \
 			  mcpu?powerpc=mcpu?620 \
 			  mcpu?powerpc=mcpu?403 \
+			  mcpu?powerpc=mcpu?405 \
+			  mcpu?powerpc=mcpu?405f \
 			  mcpu?powerpc=mpowerpc \
 			  mcpu?powerpc=mpowerpc-gpopt \
 			  mcpu?powerpc=mpowerpc-gfxopt



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