[PowerPC] Implement Vector Extract Low/High Order Builtins in LLVM/Clang
authorbiplmish <biplmish@in.ibm.com>
Fri, 7 Aug 2020 06:02:29 +0000 (01:02 -0500)
committerbiplmish <biplmish@in.ibm.com>
Fri, 7 Aug 2020 06:02:29 +0000 (01:02 -0500)
commitcce1b0e8919e9b0036f5debe60865575520df1c7
tree15554af653e50f3102bfb837b9e451fdb622ad20
parent55de46f3b2c5651b06e4739209907f14ab781d89
[PowerPC] Implement Vector Extract Low/High Order Builtins in LLVM/Clang

This patch implements the function prototypes vec_extractl and vec_extracth in altivec.h to utilize the vector extract double element instructions introduced in Power10.

Differential Revision: https://reviews.llvm.org/D84622
clang/include/clang/Basic/BuiltinsPPC.def
clang/lib/Headers/altivec.h
clang/test/CodeGen/builtins-ppc-p10vector.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/builtins-ppc-p10permute.ll