[PowerPC][Power10] Exploit store rightmost vector element instructions
authorKamau Bridgeman <kamau.bridgeman@ibm.com>
Tue, 22 Dec 2020 17:04:57 +0000 (12:04 -0500)
committerAlbion Fung <conanap@lep82435v.canlab.ibm.com>
Tue, 22 Dec 2020 17:06:43 +0000 (12:06 -0500)
commit8a58f21f5b6c228137a9b87906fe5b720c4d1dfb
treea6c3d807687f95fa271065792179baed1fb24ba2
parent9a7895dc20852b662a66976d06871ec2a0b968c8
[PowerPC][Power10] Exploit store rightmost vector element instructions

Using the store rightmost vector element instructions to do vector
element extraction and store. The rightmost vector element on little
endian is the zeroth vector element, with these patterns that element
can be extracted and stored in one instruction for all vector types.

Differential Revision: https://reviews.llvm.org/D89195
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll
llvm/test/CodeGen/PowerPC/store-rightmost-vector-elt.ll [new file with mode: 0644]