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

Paul Sandoz psandoz at openjdk.java.net
Mon Apr 19 20:56:32 UTC 2021


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.

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

Commit messages:
 - Fix merge.
 - Merge branch 'vectorIntrinsics' into byte-load-store-boolean
 - Refine spec. Add tests.
 - Load/store byte vector from/to boolean[].

Changes: https://git.openjdk.java.net/panama-vector/pull/71/files
 Webrev: https://webrevs.openjdk.java.net/?repo=panama-vector&pr=71&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8265482
  Stats: 1363 lines in 70 files changed: 1363 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/panama-vector/pull/71.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-vector pull/71/head:pull/71

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


More information about the panama-dev mailing list