]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Add %wD constraint and predicate for accumulators
authorAvinash Jayakar <avinashd@linux.ibm.com>
Thu, 2 Jul 2026 06:45:09 +0000 (12:15 +0530)
committerAvinash Jayakar <avinashd@linux.ibm.com>
Wed, 22 Jul 2026 07:46:41 +0000 (13:16 +0530)
commit14375d01d76ebed8d414eef0139a8287cda29c51
tree07fb15020006f74ebb07fc774a2116a0df9461cf
parent2c421a5cbe9d2b61316556a3ef30e408e5210520
rs6000: Add %wD constraint and predicate for accumulators

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  <avinashd@linux.ibm.com>

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.
gcc/config/rs6000/constraints.md
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000.cc
gcc/config/rs6000/rs6000.h
gcc/doc/md.texi