[vectorIntrinsics] RFR: 8265482: [vector] loading/storing byte vector from/to boolean[]

Sandhya Viswanathan sviswanathan at openjdk.java.net
Mon Apr 19 23:56:16 UTC 2021


On Mon, 19 Apr 2021 20:51:52 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Add methods to load/store a byte vector from/to boolean[].
> 
> A boolean value is converted to a byte value by way of the expression (byte) b ? 1 : 0, where b is the boolean value.
> 
> A byte value is converted to a boolean value by way of the expression (b & 1) != 0 ? true : false, where b is the byte value.
> 
> The testing is partially covered. Further tests need to be added for gather/scatter load/stores. However, existing gather/scatter tests are not part of the load/store test templates, and i would like to make that so before adding such tests.

Marked as reviewed by sviswanathan (Committer).

Looks good to me.

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

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


More information about the panama-dev mailing list