8370691: Add new HalffloatVector type and enable intrinsification of float16 vector operations #28002
+40,926
−7,001
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add new HalffloatVector type and corresponding concrete vector classes in addition to existing primitive vector types, maintaining operation parity with the FloatVector type.
The idea here is to first be at par with Float16 auto-vectorization support before intrinsifying new operations (conversions, reduction, etc).
Performance of the FMA benchmark on Intel Xeon Emerald Rapids : INTEL(R) XEON(R) PLATINUM 8581C CPU @ 2.30GHz

TODO:
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
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28002/head:pull/28002$ git checkout pull/28002Update a local copy of the PR:
$ git checkout pull/28002$ git pull https://git.openjdk.org/jdk.git pull/28002/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28002View PR using the GUI difftool:
$ git pr show -t 28002Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28002.diff