[vectorIntrinsics+mask] RFR: 8270264: Add the masking support for vector lanewiseShift

Jatin Bhateja jbhateja at openjdk.java.net
Wed Jul 14 12:33:19 UTC 2021


On Wed, 14 Jul 2021 06:19:14 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> This patch adds the masking support for "`lanewiseShift`" vector API. Originally there is no masked operation for this API,
> adding the masked version for it can benefit the masked binary "`lanewise`" that has a shift op and a constant input like:
> 
>   ByteVector lanewise(VectorOperators.Binary op,
>                       byte e,
>                       VectorMask<Byte> m)
> 
> To support it, this patch adds the mask information to the original intrinsic methods which are called both by masked and
> non-masked `lanewiseShift` operations. For non-masked operations, the mask class and value are set to null.

Marked as reviewed by jbhateja (Committer).

Looks good to me. Thanks!

-------------

PR: https://git.openjdk.java.net/panama-vector/pull/97


More information about the panama-dev mailing list