[PowerPC][AIX] Enable the default AltiVec ABI on AIX
authorZarko Todorovski <zarko@ca.ibm.com>
Fri, 5 Mar 2021 17:36:45 +0000 (12:36 -0500)
committerZarko Todorovski <zarko@ca.ibm.com>
Fri, 5 Mar 2021 17:46:27 +0000 (12:46 -0500)
commit2b50ce152417286e0091a1683482457473d4d7a8
tree282235eab68ba6a357bc9ebfcce59faa2ac95bf0
parent232fec941d2301165ea20ba8e6970bdf3c515c84
[PowerPC][AIX] Enable the default AltiVec ABI on AIX

This patch adds support for the default AltiVec ABI for AIX.

Vector registers 20 through 31 are marked as reserved and cannot
be used in the default ABI. This patch adds handling for this case
and also remove the default AltiVec ABI errors.

Reviewed By: sfertile

Differential Revision: https://reviews.llvm.org/D96351
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/test/CodeGen/PowerPC/aix-csr-vector.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-inlineasm-reserved-reg-dflt-warn.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/aix-vec-abi.ll [deleted file]