RFR: 8373722: [TESTBUG] compiler/vectorapi/TestVectorOperationsWithPartialSize.java fails intermittently

Xiaohong Gong xgong at openjdk.org
Thu Dec 25 01:37:59 UTC 2025


On Wed, 24 Dec 2025 09:46:29 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> > So that's just the issue that I want to avoid. We didn't have a more reasonable golden value as we do not know the calculation order in Vector API, right?
> 
> Agreed.
> 
> I would suggest the testing range also covers negative floats, not only positives.

Extending the range to include both negative and positive floats would produce discrepancies like the ones you observed, and would force us to adopt a much larger tolerance, which is undesirable. As mentioned above, it is not realistic to use a single tolerance that works well for all possible input values in the Vector API. Since reduceLanes is already thoroughly tested under jdk/jdk/incubator/vector with a wide variety of float inputs, this particular test is intended to focus on verifying the generated IR rather than exhaustively validating numerical behavior.

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

PR Comment: https://git.openjdk.org/jdk/pull/28960#issuecomment-3690699242


More information about the hotspot-compiler-dev mailing list