[patch] extend.texi MIPS PS/3D Support

Fu, Chao-Ying fu@mips.com
Wed Sep 22 22:05:00 GMT 2004


Ok.  We need to put this into "mips.h".  Thanks!

Regards,
Chao-ying Fu
MIPS Technolgoies, Inc.

Index: mips.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.370
diff -c -3 -p -r1.370 mips.h
*** mips.h	18 Sep 2004 19:19:37 -0000	1.370
--- mips.h	22 Sep 2004 21:07:30 -0000
*************** extern const struct mips_cpu_info *mips_
*** 243,248 ****
--- 243,250 ----
  				((target_flags & MASK_PAIRED_SINGLE) != 0)
  #define TARGET_MIPS3D		((target_flags & MASK_MIPS3D) != 0)
  
+ #define UNITS_PER_SIMD_WORD	(TARGET_PAIRED_SINGLE_FLOAT ? 8 : 0)
+ 
  /* True if we should use NewABI-style relocation operators for
     symbolic addresses.  This is never true for mips16 code,
     which has its own conventions.  */

-----Original Message-----
From: Dorit Naishlos [mailto:DORIT@il.ibm.com]
Sent: Wednesday, September 22, 2004 2:34 AM
To: Giovanni Bajo
Cc: dpatel@apple.com; Fu, Chao-Ying; gcc-patches@gcc.gnu.org; Gerald
Pfeifer; Stephens, Nigel; Thekkath, Radhika; Uhler, Mike; Jim Wilson
Subject: Re: [patch] extend.texi MIPS PS/3D Support



> Does MIPS PS/3D work also with the autovectorizer?

It should, if you define UNITS_PER_SIMD_WORD.

dorit




                                                                                                                                   
                      "Giovanni Bajo"                                                                                              
                      <giovannibajo@lib        To:       "Fu, Chao-Ying" <fu@mips.com>, "Gerald Pfeifer" <gerald@pfeifer.com>,     
                      ero.it>                   <dpatel@apple.com>, Dorit Naishlos/Haifa/IBM@IBMIL                                 
                                               cc:       <nigel@mercury.mips.com>, <radhika@mercury.mips.com>,                     
                      22/09/2004 03:33          <uhler@mercury.mips.com>, "Jim Wilson" <wilson@specifixinc.com>,                   
                                                <gcc-patches@gcc.gnu.org>                                                          
                                               Subject:  Re: [patch] extend.texi MIPS PS/3D Support                                
                                                                                                                                   




Fu, Chao-Ying wrote:

> Hi Jim,
>
> Thanks for your feedback!  Here is the updated patc    h.
> (I forgot to send my first email to gcc-patches.  This time should be
> ok.)

Thanks for writing this up. Would you please prepare also a patch to
http://gcc.gnu.org/gcc-4.0/changes.html mentioning this change? Moreover,
if
Gerald agrees, I think we could mention the PS/3D support in the front page
too
(http://gcc.gnu.org/news.html).

Does MIPS PS/3D work also with the autovectorizer?

Giovanni Bajo







More information about the Gcc-patches mailing list