[vectorIntrinsics+mask] RFR: 8272100: VectorAPI: modify existing implementation of masked neg and not operation.
Paul Sandoz
psandoz at openjdk.java.net
Mon Aug 9 16:24:43 UTC 2021
On Mon, 9 Aug 2021 11:34:55 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> Seems the result is not equal to `this` vector for the non-active lanes (false lane for `m`)?
>
> Yes, result will not be same since broadcasted zero vector is first operand. We need to select the lanes of 'this' vector when corresponding mask bit is false.
Doh! Can you place a comment the NOT/ADD expression? e.g.
// Cannot perform broadcast(0).lanewise(SUB, this, m)
// since we need to retain unselected lanes in this vector
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/108
More information about the panama-dev
mailing list