[PATCH] D84622: [PowerPC] Implement Vector Extract Low/High Order Builtins in LLVM/Clang

Biplob Mishra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 00:29:27 PDT 2020


biplmish created this revision.
biplmish added reviewers: amyk, lei, steven.zhang, PowerPC.
Herald added subscribers: cfe-commits, shchenz, wuzish, kbarton, hiraditya, nemanjai.
Herald added projects: clang, LLVM.

This patch implements builtins for the following prototypes:

vector unsigned long long vec_extractl (vector unsigned char, vector unsigned char, unsigned int);
vector unsigned long long vec_extractl (vector unsigned short, vector unsigned short, unsigned int);
vector unsigned long long vec_extractl (vector unsigned int, vector unsigned int, unsigned int);
vector unsigned long long vec_extractl (vector unsigned long long, vector unsigned long long, unsigned int);

vector unsigned long long vec_extracth (vector unsigned char, vector unsigned char, unsigned int);
vector unsigned long long vec_extracth (vector unsigned short, vector unsigned short, unsigned int);
vector unsigned long long vec_extracth (vector unsigned int, vector unsigned int, unsigned int);
vector unsigned long long vec_extracth (vector unsigned long long, vector unsigned long long, unsigned int);


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84622

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84622.280803.patch
Type: text/x-patch
Size: 21326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/80d0c825/attachment.bin>


More information about the llvm-commits mailing list