[PowerPC] Implement builtin for vbpermd
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 29 Sep 2021 11:33:46 +0000 (06:33 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 29 Sep 2021 11:34:31 +0000 (06:34 -0500)
commit09b67aa1c38279daa54246e3f216186e35a3e5b9
tree6a2bcab37b4102cfbbb09f2e7c6d706be762705b
parentff05e25a84578e84ad0a065e8e34c04b217da409
[PowerPC] Implement builtin for vbpermd

The instruction has similar semantics to vbpermq but for doublewords.
It was added in Power9 and the ABI documents the builtin.

Differential revision: https://reviews.llvm.org/D107899
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Headers/altivec.h
clang/test/CodeGen/builtins-ppc-p8vector.c
clang/test/CodeGen/builtins-ppc-p9vector.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrAltivec.td
llvm/test/CodeGen/PowerPC/p9-vbpermd.ll [new file with mode: 0644]