On Thu, Jul 16, 2026 at 08:51:40PM +0530, Avinash Jayakar wrote: > This patch replaces the 'd' constraint that was used for accumulators > previously since they overlapped with the FPRs, to use 'wD' constraint > and the new accumulator_operand in the existing mma define_insns. The > behaviour without dense-math option will be same as before, only if > dense-math option is used will the DMR registers be used. > > It also updates the %A operand printer to print the DMR register numbers > instead of FPR if dense-math option is enabled
This is ok for submission to the master branch. > 2026-07-16 Avinash Jayakar <[email protected]> > Vijay Shankar <[email protected]> > > gcc/ChangeLog: > * config/rs6000/mma.md (mma_xxsetaccz): Use wD constraint and > accumulator operand. > (mma_<vv>): Likewise. > (mma_<avv>): Likewise. > (mma_<pv>): Likewise. > (mma_<apv>): Likewise. > (mma_<vvi4i4i8>): Likewise. > (mma_<avvi4i4i8>): Likewise. > (mma_<vvi4i4i2>): Likewise. > (mma_<avvi4i4i2>): Likewise. > (mma_<vvi4i4>): Likewise. > (mma_<avvi4i4>): Likewise. > (mma_<pvi4i2>): Likewise. > (mma_<apvi4i2>): Likewise. > (mma_<vvi4i4i4>): Likewise. > (mma_<avvi4i4i4>): Likewise. > * config/rs6000/rs6000.cc (print_operand): Print DMR register > numbers if dense math option enabled. As I've said in the other patches, you might want to change this to: 2026-07-16 Avinash Jayakar <[email protected]> Vijay Shankar <[email protected]> gcc/ * config/rs6000/mma.md (mma_xxsetaccz): Use wD constraint and accumulator operand. (mma_<vv>): Likewise. (mma_<avv>): Likewise. (mma_<pv>): Likewise. (mma_<apv>): Likewise. (mma_<vvi4i4i8>): Likewise. (mma_<avvi4i4i8>): Likewise. (mma_<vvi4i4i2>): Likewise. (mma_<avvi4i4i2>): Likewise. (mma_<vvi4i4>): Likewise. (mma_<avvi4i4>): Likewise. (mma_<pvi4i2>): Likewise. (mma_<apvi4i2>): Likewise. (mma_<vvi4i4i4>): Likewise. (mma_<avvi4i4i4>): Likewise. * config/rs6000/rs6000.cc (print_operand): Print DMR register numbers if dense math option enabled. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: [email protected]
