This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [autovect] [patch] change vector shift to bit-shift instead of byte-shift
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Dorit Naishlos" <DORIT at il dot ibm dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 18 Jun 2005 14:11:22 +0200
- Subject: Re: [autovect] [patch] change vector shift to bit-shift instead of byte-shift
- References: <OFCE37259E.44CFD3C9-ONC2257024.003A50CA-C2257024.003EBF0A@il.ibm.com>
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