RFR: 8373722: [TESTBUG] compiler/vectorapi/TestVectorOperationsWithPartialSize.java fails intermittently
Xiaohong Gong
xgong at openjdk.org
Mon Dec 29 01:31:59 UTC 2025
On Thu, 25 Dec 2025 08:08:01 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> > Thanks for the suggestion. I understand your point, and it sounds reasonable to me. In this test, the tolerance calculation is based on the existing Vector API jtreg reduction tests. For example, here is the approach used in `Float128VectorTests`:
> > https://github.com/openjdk/jdk/blob/73a8629c5b52b678febcc9d339e01ebcc5277909/test/jdk/jdk/incubator/vector/Float128VectorTests.java#L143-L156
>
> May I ask would the example you mentioned above fail for negative floats?
Yes, it will fail as well after I manually changed the values in the float array.
> Note: I've provided a reproducer which would 100% fail for your current implementation with negative floats, which seems unacceptable to me.
>
> Also I'm still not sure if there are corner cases with the 1~3000 range since the logic has been proved wrong with negative floats.
I think the issue happens when there are both positive and negative values which would create an extremely small value.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28960#issuecomment-3695229101
More information about the hotspot-compiler-dev
mailing list