[vectorIntrinsics+compress] RFR: 8274971: Add PrefixMask API
Jatin Bhateja
jbhateja at openjdk.java.net
Tue Oct 12 06:37:04 UTC 2021
On Mon, 11 Oct 2021 22:51:10 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:
> @JoshuaZhuwj Yes, let us use mask.compress() name instead. For AVX512, one way is to use the PEXT instruction for mask.compress() implementation:
>
> * Move the mask from k register to r register
> * PEXT on r register with other register having all 1s.
> * Move from r register to k register
> Are you planning to add the test cases as well?
Thanks @sviswa7 , I can pick this up once the API definition gets checked in.
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/148
More information about the panama-dev
mailing list