Re: [PATCH v2, rs6000] Add vec_reve support

2017-06-22 Thread Segher Boessenkool
Hi Carl, On Wed, Jun 21, 2017 at 02:23:06PM -0700, Carl Love wrote: > +;; Vector reverse elements > +(define_expand "altivec_vreve2" > + [(set (match_operand:VEC_A 0 "register_operand" "=v") > + (unspec:VEC_A [(match_operand:VEC_A 1 "register_operand" "v")] > +

Re: [PATCH v2, rs6000] Add vec_reve support

2017-06-21 Thread Carl Love
GCC maintainers: I have updated the patch per the comments from Segher. I used the functions GET_MODE_UNIT_SIZE() and GET_MODE_NUNITS() as suggested. I didn't know about these functions, I checked out all the various functions defined in machmode.h for future reference. Note, I did make some