RFR: 8346236: Auto vectorization support for various Float16 operations [v6]

Jatin Bhateja jbhateja at openjdk.org
Fri Mar 28 04:56:14 UTC 2025


On Tue, 25 Mar 2025 07:56:58 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> I looked at the changes in `Generators.java`, thanks for adding some code there 😊
> 
> Some comments on it:
> 
> * You should add some Float16 tests to `test/hotspot/jtreg/testlibrary_tests/generators/tests/TestGenerators.java`.
> * I am missing the "mixed distribution" function `float16s()`. As a reference, take `public Generator<Double> doubles()`. The idea is that we have a set of distributions, and we pick a random distribution every time in the tests.
> * I'm also missing a "any bits" version, where you would take a random short value and reinterpret it as `Float16`. This ensures that we are getting all possible encodings, including multiple NaN encodings.
> * All of this is probably enough code to make a separate PR.

Hi @eme64 
Your comments have been addressed.

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

PR Comment: https://git.openjdk.org/jdk/pull/22755#issuecomment-2760191652


More information about the hotspot-compiler-dev mailing list