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: [autovect] [patch] change vector shift to bit-shift instead of byte-shift


Dorit Naishlos <DORIT@il.ibm.com> wrote:

>         * optabs.c (expand_vec_shift_expr): Make sure GEN_FCN
> succeeded. 
>         * optabs.h (OTI_vec_shli, OTI_vec_shri): Update comment.
>         * tree-vect-transform.c (vect_create_epilog_for_reduction):
> Generate
>         a shift in bits instead of bytes.
>         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): Update comment.
>         * config/rs6000/altivec.md (vec_shli_<mode>, vec_shri_<mode>):
>         Take shift argument in bits instead of bytes.


Index: tree.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.def,v
retrieving revision 1.103.14.9
diff -c -3 -p -r1.103.14.9 tree.def
*** tree.def	15 Jun 2005 20:09:56 -0000	1.103.14.9
--- tree.def	17 Jun 2005 05:51:02 -0000
*************** DEFTREECODE (REDUC_PLUS_EXPR, "reduc_plu
*** 945,951 ****
  
  /* Whole vector lesft/right shift in bytes.
     Operand 0 is a vector to be shifted.
!    Operand 2 is an integer shift amount in bytes.  */
  DEFTREECODE (VEC_LSHIFT_EXPR, "vec_lshift_expr", tcc_binary, 2)
  DEFTREECODE (VEC_RSHIFT_EXPR, "vec_rshift_expr", tcc_binary, 2)
  
--- 945,951 ----
  
  /* Whole vector lesft/right shift in bytes.
     Operand 0 is a vector to be shifted.
!    Operand 2 is an integer shift amount in bits.  */
  DEFTREECODE (VEC_LSHIFT_EXPR, "vec_lshift_expr", tcc_binary, 2)
  DEFTREECODE (VEC_RSHIFT_EXPR, "vec_rshift_expr", tcc_binary, 2)


Typo, "Operand 1".

Giovanni Bajo


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