[PATCH] D103615: [Clang] Add option to handle behaviour of vector bool/vector pixel.
Bardia Mahjour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 5 11:46:30 PDT 2021
bmahjour added a comment.
In D103615#2852430 <https://reviews.llvm.org/D103615#2852430>, @krasimir wrote:
> I'm unfamiliar with the altivec API. What's a reasonable source code update that preserves the current default behavior `-altivec-src-compat=mixed` under `-altivec-src-compat=xl`, i.e., under `-altivec-src-compat=xl` how would we compare vector bool or vector pixel to produce a vector?
For `vector bool` comparison one could use `vec_cmpeq` and `vec_compne` (see https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-vec-cmpeq). However, `vec_cmp*` interfaces do not currently support `vector pixel`. Do you have a concrete use case for comparing `vector pixel`s? If so I think we should consider adding corresponding overloads to `altivec.h`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103615/new/
https://reviews.llvm.org/D103615
More information about the cfe-commits
mailing list