[vectorIntrinsics] RFR: Load/store short vectors from/to char[]
Paul Sandoz
psandoz at openjdk.java.net
Tue Nov 17 17:24:08 UTC 2020
On Tue, 17 Nov 2020 01:42:36 GMT, Jie Fu <jiefu at openjdk.org> wrote:
>> Methods to load/store a `ShortVector` from/to `char[]`. These methods may be useful for encoding/decoding characters.
>>
>> Unclear if aliasing of `char[]` and `short[]` causes issues for the intrinsic or for Hotspot code gen.
>>
>> Testing-wise, it was easier to explicitly clone and reify the relevant tests rather than trying to generalize the template and its template arguments to distinguish between the vector type and the array type.
>
> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Byte128Vector.java line 808:
>
>> 806: }
>> 807:
>> 808:
>
> Some files were just modified by adding an empty newline.
> Why?
It's an unfortunate side-effect of generating files from a template , where in some cases the generation is partial.
In this case generating from `X-VectorBits.java.template` for code specific to the `short` element type.
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/22
More information about the panama-dev
mailing list