[PATCH] D25915: [PPC] add vector byte reverse functions to altivec.h

Sean Fertile via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 11:20:27 PDT 2016


sfertile created this revision.
sfertile added reviewers: nemanjai, kbarton, amehsan, jtony.
sfertile added a subscriber: llvm-commits.
sfertile set the repository for this revision to rL LLVM.

Add the following byte reverse functions in altivec.h

vector bool char vec_revb (vector bool char);
vector signed char vec_revb (vector signed char);
vector unsigned char vec_revb (vector unsigned char);
vector bool int vec_revb (vector bool int);
vector signed int vec_revb (vector signed int);
vector unsigned int vec_revb (vector unsigned int);
vector signed __int128 vec_revb (vector signed __int128);
vector unsigned __int128 vec_revb (vector unsigned __int128);
vector bool long long vec_revb (vector bool long long);
vector signed long long vec_revb (vector signed long long);
vector unsigned long long vec_revb (vector unsigned long long);
vector bool short vec_revb (vector bool short);
vector signed short vec_revb (vector signed short);
vector unsigned short vec_revb (vector unsigned short);
vector double vec_revb (vector double);
vector float vec_revb (vector float);

The return value is a vector where each element contains the corresponding byte-reversed vector element of the input vector.


Repository:
  rL LLVM

https://reviews.llvm.org/D25915

Files:
  lib/Headers/altivec.h
  test/CodeGen/builtins-ppc-altivec.c
  test/CodeGen/builtins-ppc-quadword.c
  test/CodeGen/builtins-ppc-vsx.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25915.75614.patch
Type: text/x-patch
Size: 16752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161024/279e0ab9/attachment-0001.bin>


More information about the llvm-commits mailing list