[PowerPC] Fix float materialization patterns.
authorStefan Pintilie <stefanp@ca.ibm.com>
Mon, 13 Feb 2023 14:59:23 +0000 (09:59 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Mon, 13 Feb 2023 15:18:53 +0000 (10:18 -0500)
commit2e47aafb02f3e46fc3e01799053e01835239151d
treee0b68d147a1472cf4bccff80ac99f80b2abeb677
parent6a6c527ee287a4a7787fb5c519014c2e22f718c3
[PowerPC] Fix float materialization patterns.

Two of the float materialization patterns use the VSSRC regsiter class. This
register class is not available before Power 8. The patterns will stay the same
for Power 8 and up but must use the class F4RC for Power 7 and earlier.

This patch fixes those patterns.

Reviewed By: nemanjai, amyk, #powerpc

Differential Revision: https://reviews.llvm.org/D142120
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/ppc-float-spill.ll [new file with mode: 0644]