On Fri, 18 Sep 2026 22:05:08 GMT, Mohamed Issa <[email protected]> wrote:

> It turns out the 2-step FP16 to integral conversion process is usually more 
> beneficial on platforms that support AVX10.2 instructions. This is mainly due 
> to the reduced instruction count and automatic special case handling (e.g., 
> NaN). With that in mind, the changes in this PR go back to the original 
> approach when the AVX10.2 vectorized path is detected in the C2 compiler. 
> There are also some updates to the JTREG tests and JMH benchmarks.
> 
> The JTREG test listed below was used to verify correctness with 
> `-XX:-UseSuperWord` and `-XX:+UseSuperWord` JVM options applied. All 
> modifications and tests used [OpenJDK 
> v28-b15](https://github.com/openjdk/jdk/releases/tag/jdk-28%2B15) as the 
> baseline build.
> 
> 1. 
> `jtreg:test/hotspot/jtreg/compiler/vectorapi/TestFloat16ToIntegralConv.java`
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 3f150a4a
Author:    Mohamed Issa <[email protected]>
Committer: Jatin Bhateja <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/3f150a4ae4253d52fb2503e1760d86a5718169b7
Stats:     47 lines in 4 files changed: 36 ins; 0 del; 11 mod

8392723: Restore Float16 to integral conversion behavior on AVX10.2 targets

Reviewed-by: sviswanathan, mhaessig, sparasa, jbhateja

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

PR: https://git.openjdk.org/jdk/pull/32957

Reply via email to