RFR: 8370691: Add new Float16Vector type and enable intrinsification of vector operations supported by auto-vectorizer [v12]
Emanuel Peter
epeter at openjdk.org
Mon Jan 19 16:19:02 UTC 2026
On Thu, 15 Jan 2026 08:56:21 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
>> Add a new Float16lVector type and corresponding concrete vector classes, in addition to existing primitive vector types, maintaining operation parity with the FloatVector type.
>> - Add necessary inline expander support.
>> - Enable intrinsification for a few vector operations, namely ADD/SUB/MUL/DIV/MAX/MIN/FMA.
>> - Use existing Float16 vector IR and backend support.
>> - Extended the existing VectorAPI JTREG test suite for the newly added Float16Vector operations.
>>
>> The idea here is to first be at par with Float16 auto-vectorization support before intrinsifying new operations (conversions, reduction, etc).
>>
>> The following are the performance numbers for some of the selected Float16Vector benchmarking kernels compared to equivalent auto-vectorized Float16OperationsBenchmark kernels.
>>
>> <img width="1344" height="532" alt="image" src="https://github.com/user-attachments/assets/c8157c3c-22b0-4bc1-9de9-7a68cadb7b2a" />
>>
>> Initial RFP[1] was floated on the panama-dev mailing list.
>>
>> Kindly review the draft PR and share your feedback.
>>
>> Best Regards,
>> Jatin
>>
>> [1] https://mail.openjdk.org/pipermail/panama-dev/2025-August/021100.html
>
> Jatin Bhateja has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 28 commits:
>
> - Merge branch 'master' of http://github.com/openjdk/jdk into JDK-8370691
> - Adding testpoint for JDK-8373574
> - Review comments resolutions
> - Merge branch 'master' of http://github.com/openjdk/jdk into JDK-8370691
> - Fix incorrect argument passed to smokeTest
> - Fix from Bhavana Kilambi for failing JTREG regressions on AARCH64
> - Merge branch 'master' of http://github.com/openjdk/jdk into JDK-8370691
> - Including test changes from Bhavana Kilambi (ARM)
> - Merge branch 'master' of http://github.com/openjdk/jdk into JDK-8370691
> - Optimizing tail handling
> - ... and 18 more: https://git.openjdk.org/jdk/compare/499b5882...273b219e
test/jdk/jdk/incubator/vector/IntVectorMaxTests.java line 68:
> 66: static IntVector bcast_vec = IntVector.broadcast(SPECIES, (int)10);
> 67:
> 68: static void AssertEquals(int actual, int expected) {
There are lots of changes in this file that do not seem to have anything to do with Float16. Please file them separately. It will make review much easier.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28002#discussion_r2705376899
More information about the hotspot-compiler-dev
mailing list