On Thu, Jul 16, 2026 at 10:03:58AM +0530, Avinash Jayakar wrote: > Following patch has been bootstrapped and regtested on > powerpc64le-linux-gnu. Ok for trunk and gcc-16? > > The future processor may introduce new set of registers for > accumulators. This patch adds a constraint and predicate for the > accumulator registers which can be used by the dense math and mma > patterns. > > 2026-07-16 Avinash Jayakar <[email protected]> > > gcc/ChangeLog: > * config/rs6000/constraints.md > (rs6000_constraints[RS6000_CONSTRAINT_wD]): New wD constraint. > * config/rs6000/predicates.md (accumulator_operand): New predicate. > * config/rs6000/rs6000.cc (rs6000_debug_reg_global): Support wD > register class. > (rs6000_init_hard_regno_mode_ok): Map wD to FLOAT_REGS. > * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wD constraint. > * doc/md.texi: Document the new constraint.
This is ok to submit to the master branch. Please change the commit ChangeLog to something like (i.e. don't mention ChangeLog, just the directory the ChangeLog files are in and add a blank line after it): 2026-07-16 Avinash Jayakar <[email protected]> gcc/ * config/rs6000/constraints.md (rs6000_constraints[RS6000_CONSTRAINT_wD]): New wD constraint. * config/rs6000/predicates.md (accumulator_operand): New predicate. * config/rs6000/rs6000.cc (rs6000_debug_reg_global): Support wD register class. (rs6000_init_hard_regno_mode_ok): Map wD to FLOAT_REGS. * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wD constraint. * doc/md.texi: Document the new constraint. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: [email protected]
