On Thu, May 20, 2021 at 02:30:24PM -0500, will schmidt wrote:
> > +;; XXPERMX built-in function support
> > +(define_expand "xxpermx"
> > +  [(set (match_operand:V2DI 0 "register_operand" "+wa")
> > +   (unspec:V2DI [(match_operand:V2DI 1 "register_operand" "wa")
> > +                 (match_operand:V2DI 2 "register_operand" "wa")
> > +                 (match_operand:V16QI 3 "register_operand" "wa")
> > +                 (match_operand:QI 4 "u8bit_cint_operand" "n")]
> > +                UNSPEC_XXPERMX))]
> > +  "TARGET_POWER10"
> > +{
> > +  if (BYTES_BIG_ENDIAN)
> > +    emit_insn (gen_xxpermx_inst (operands[0], operands[1],
> > +                            operands[2], operands[3],
> > +                            operands[4]));
> > +  else
> > +    {
> > +      /* Reverse value of byte element indexes by XORing with 0xFF.
> > +    Reverse the 32-byte section identifier match by subracting bits [0:2]
> > +    of elemet from 7.  */
> 
> 
> element   (typo also existed in original).

Yep.  I just copied the text verbatim from altivec.md.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meiss...@linux.ibm.com, phone: +1 (978) 899-4797

Reply via email to