RFR: 8331577: RISC-V: C2 CountLeadingZerosV [v2]

Hamlin Li mli at openjdk.org
Thu May 9 14:09:52 UTC 2024


On Thu, 9 May 2024 13:18:13 GMT, Fei Yang <fyang at openjdk.org> wrote:

> > > Sorry for not being accurate. In fact, I mean requirement at the Java level. Why should we keep the origin value of inactive elements from the input vector? I didn't notice such a requirement before.
> > 
> > 
> > I'm not sure about other places, but in vector APi, if you do operations with a mask, then the untouched (inactive in riscv vector insts) elements should be unmodified, i.e. same as original values.
> 
> It will be helpful if you could point to the specific code or examples.

For the example usage, please check the test code, e.g. https://github.com/openjdk/jdk/blob/master/test/jdk/jdk/incubator/vector/Byte64VectorTests.java#L5458
For the courterpart of this intrinsic in arm, please check https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/aarch64/aarch64_vector.ad#L6391
Hope these information are helpful.

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

PR Comment: https://git.openjdk.org/jdk/pull/19153#issuecomment-2102732804


More information about the hotspot-compiler-dev mailing list