Re: [PATCH 2/3, v2] rs6000: Add MMA built-in function definitions

2020-06-20 Thread Peter Bergner via Gcc-patches
On 6/19/20 12:06 PM, Peter Bergner wrote: > On 6/19/20 11:45 AM, Segher Boessenkool wrote: >>> +(define_insn_and_split "*mma_assemble_acc" >>> + [(set (match_operand:PXI 0 "fpr_reg_operand" "=d") >>> + (unspec:PXI [(match_operand:PXI 1 "mma_input_operand" "mwa") >>> +(match_opera

Re: [PATCH 2/3, v2] rs6000: Add MMA built-in function definitions

2020-06-19 Thread Peter Bergner via Gcc-patches
On 6/19/20 11:45 AM, Segher Boessenkool wrote: > On Thu, Jun 18, 2020 at 03:45:17PM -0500, Peter Bergner wrote: >> +;; Return 1 if this operand is valid for a MMA assemble accumulator insn. >> +(define_special_predicate "mma_input_operand" >> + (match_test "(mode == PXImode >> +&& (GET

Re: [PATCH 2/3, v2] rs6000: Add MMA built-in function definitions

2020-06-19 Thread Segher Boessenkool
Hi! On Thu, Jun 18, 2020 at 03:45:17PM -0500, Peter Bergner wrote: > +;; Return 1 if this operand is valid for a MMA assemble accumulator insn. > +(define_special_predicate "mma_input_operand" > + (match_test "(mode == PXImode > + && (GET_MODE (op) == V16QImode) > + && (vs

[PATCH 2/3, v2] rs6000: Add MMA built-in function definitions

2020-06-18 Thread Peter Bergner via Gcc-patches
Changes since v1: - Updated ChangeLog entry per Segher's suggestion. - Updated doc/extend.texi with correct built-in names for __builtin_vsx_xvcvspbf16 and __builtin_vsx_xvcvbf16sp. This patches adds the actual MMA built-ins. The MMA accumulators are INOUT operands for most MMA instructio