This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG09b67aa1c382: [PowerPC] Implement builtin for vbpermd
(authored by nemanjai).
Changed prior to commit:
https://reviews.llvm.org/D107899?vs=365731&
bmahjour added inline comments.
Comment at: clang/lib/Headers/altivec.h:17349
+static __inline__ vector unsigned char __ATTRS_o_ai
+vec_bperm(vector unsigned char __a, vector unsigned char __b) {
+ return __builtin_altivec_vbpermq(__a, __b);
bmahjour wrote:
> `v
bmahjour added inline comments.
Comment at: clang/lib/Headers/altivec.h:17337
static __inline__ vector long long __ATTRS_o_ai
vec_vbpermq(vector unsigned char __a, vector unsigned char __b) {
return __builtin_altivec_vbpermq(__a, __b);
lei wrote:
> bmahjour
lei accepted this revision as: lei.
lei added a comment.
This revision is now accepted and ready to land.
LGTM
Comment at: clang/lib/Headers/altivec.h:17337
static __inline__ vector long long __ATTRS_o_ai
vec_vbpermq(vector unsigned char __a, vector unsigned char __b) {
re
bmahjour added inline comments.
Comment at: clang/lib/Headers/altivec.h:17337
static __inline__ vector long long __ATTRS_o_ai
vec_vbpermq(vector unsigned char __a, vector unsigned char __b) {
return __builtin_altivec_vbpermq(__a, __b);
This should be guarded
nemanjai created this revision.
nemanjai added a reviewer: PowerPC.
Herald added subscribers: shchenz, kbarton, hiraditya.
nemanjai requested review of this revision.
Herald added projects: clang, LLVM.
The instruction has similar semantics to vbpermq but for doublewords. It was
added in P9