[PowerPC][Future] Enable __builtin_mma_xxm[t|f]acc
authorKamau Bridgeman <kamau.bridgeman.ibm@gmail.com>
Fri, 14 Jul 2023 18:05:32 +0000 (13:05 -0500)
committerKamau Bridgeman <kamau.bridgeman.ibm@gmail.com>
Fri, 14 Jul 2023 18:38:40 +0000 (13:38 -0500)
commit62c1cf7c63f0ef13e41c03de2c83590e6140e5fa
tree79a9ed0ccf4ef4032d4a43e16f952caa3796445c
parent68d2814f421b0b584d7526d4bd095b6bbf585807
[PowerPC][Future] Enable __builtin_mma_xxm[t|f]acc

Future cpu instructions dmxxinstdmr512 and dmxxextfdmr512 insert and extract
quad vectors from the new wide accumulator(wacc) register class.
The introduction of these new instructions renders the p10 instructions
xxmtacc and xxmfacc obsolete since the new wacc register class is a better
choice for handing quad vector operations. This patch ensures that, for
future cpu, instructions dmxxinstdmr512 and dmxxextfdmr512 are generated
by custom lowering the intrinsics for xxm[t|f]acc to produce no instructions.

Reviewed By: amyk, lei

Differential Revision: https://reviews.llvm.org/D153034
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/mmaplus-intrinsics.ll