RFR: 8321014: RISC-V: C2 VectorLoadShuffle

Ludovic Henry luhenry at openjdk.org
Thu Apr 18 12:32:01 UTC 2024


On Thu, 18 Apr 2024 11:09:16 GMT, Hamlin Li <mli at openjdk.org> wrote:

> Hi,
> Can you help to review the patch for instrinsic VectorLoadShuffle?
> 
> BTW, without this intrinsic, some other vector api operation does not work as well (e.g. rearrange) on riscv.
> 
> Thanks
> 
> ## Test
> test/jdk/jdk/incubator/vector/
> test/hotspot/jtreg/compiler/vectorapi

src/hotspot/cpu/riscv/riscv_v.ad line 81:

> 79:       case Op_VectorLoadShuffle:
> 80:       case Op_VectorRearrange:
> 81:         if (vlen < 4) {

Why the 4? It would be worth adding a comment to explicitly explain why.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18835#discussion_r1570620584


More information about the hotspot-compiler-dev mailing list