[PowerPC] Add missing negate for VPERMXOR on little endian subtargets
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 25 Jan 2021 18:22:19 +0000 (12:22 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 25 Jan 2021 18:23:33 +0000 (12:23 -0600)
commit1150bfa6bb099f9a85a140f66fde7b7f7aa54e60
treedb13dd6e422da78b3bc84ff6af630cec35ac9a20
parent1e739552ee96db4b3f2d792976ea849cb6f23650
[PowerPC] Add missing negate for VPERMXOR on little endian subtargets

This intrinsic is supposed to have the permute control vector complemented on
little endian systems (as the ABI specifies and GCC implements). With the
current code gen, the result vector is byte-reversed.

Differential revision: https://reviews.llvm.org/D95004
llvm/lib/Target/PowerPC/PPCInstrAltivec.td
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/crypto_bifs.ll