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]

Re: patch: vector register arguments


On Sat, 2001-11-03 at 13:03, Richard Henderson wrote:
> On Sat, Nov 03, 2001 at 10:16:02AM -0500, Aldy Hernandez wrote:
> > can i add documentation in the DEF_MACHMODE docs at the head of
> > machmode.def?
> 
> Yep.

here is the patch (i also corrected a small typo from before).

ok to install?

> 
> 
> r~
-- 
Aldy Hernandez			E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.

2001-11-03  Aldy Hernandez  <aldyh@redhat.com>

	* machmode.def: Add documentation for the seventh argument in
	vector modes.

Index: machmode.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/machmode.def,v
retrieving revision 1.14
diff -c -p -r1.14 machmode.def
*** machmode.def	2001/11/02 19:34:16	1.14
--- machmode.def	2001/11/04 00:21:00
*************** Software Foundation, 59 Temple Place - S
*** 59,66 ****
     It is same as the fifth argument except for complexes and vectors,
     since they are really made of many equal size subunits.
  
!    Seventh arg is next wider natural mode of the same class.
!    0 if there is none.  */
  
  /* VOIDmode is used when no mode needs to be specified,
     as for example on CONST_INT RTL expressions.  */
--- 59,69 ----
     It is same as the fifth argument except for complexes and vectors,
     since they are really made of many equal size subunits.
  
!    Seventh arg is next wider natural mode of the same class.  0 if
!    there is none.  Vector modes use this field to point to the next
!    vector size, so we can iterate through the different vectors modes.
!    The ordering is by increasing byte size, with QI coming before HI,
!    HI before SI, etc.  */
  
  /* VOIDmode is used when no mode needs to be specified,
     as for example on CONST_INT RTL expressions.  */
*************** DEF_MACHMODE (COImode, "COI", MODE_COMPL
*** 109,115 ****
  /* There are no V1xx vector modes.  These are equivalent to normal
     scalar modes.  */
  /* The wider mode field for vectors follows in order of increasing bit
!    size with QI coming before HI, HI before SI, and SI before DF
     within same bit sizes.  */
  DEF_MACHMODE (V2QImode, "V2QI", MODE_VECTOR_INT, BITS_PER_UNIT*2, 2, 1, V4QImode)
  DEF_MACHMODE (V2HImode, "V2HI", MODE_VECTOR_INT, BITS_PER_UNIT*4, 4, 2, V8QImode)
--- 112,118 ----
  /* There are no V1xx vector modes.  These are equivalent to normal
     scalar modes.  */
  /* The wider mode field for vectors follows in order of increasing bit
!    size with QI coming before HI, HI before SI, and SI before DI
     within same bit sizes.  */
  DEF_MACHMODE (V2QImode, "V2QI", MODE_VECTOR_INT, BITS_PER_UNIT*2, 2, 1, V4QImode)
  DEF_MACHMODE (V2HImode, "V2HI", MODE_VECTOR_INT, BITS_PER_UNIT*4, 4, 2, V8QImode)


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