[vectorIntrinsics+compress] RFR: 8274664: Add support for compress/expand api methods
Jatin Bhateja
jbhateja at openjdk.java.net
Sat Oct 2 03:33:50 UTC 2021
On Fri, 1 Oct 2021 22:33:43 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:
> Add support for the cross lane operations to compress/expand the lane elements of a vector selecting lanes under the control of a mask. The remaining lanes of the destination vector could be either set to zero or get the value from corresponding elements of the background vector.
> The following methods are added:
> public abstract Vector<E> compress(VectorMask<E> m);
> public abstract Vector<E> compress(VectorMask<E> m, Vector<E> v);
> public abstract Vector<E> expand(VectorMask<E> m);
> public abstract Vector<E> expand(VectorMask<E> m, Vector<E> v);
Hi @sviswa7 , I have a patch which intrinsifies these APIs and emits efficient code sequence for X86 AVX512 target.
I shall post it for review once this patch gets integrated.
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/143
More information about the panama-dev
mailing list