RFR: 8373722: [TESTBUG] compiler/vectorapi/TestVectorOperationsWithPartialSize.java fails intermittently
Xiaohong Gong
xgong at openjdk.org
Wed Dec 24 02:09:01 UTC 2025
On Tue, 23 Dec 2025 09:49:26 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> > And what we really care about is how close the reduction result is to the mathematically expected value.
>
> Understood.
>
> However, (1.0, 5.0) the test range is really too small. If we expand the range, the current tolerance may still become not big enough.
What I really want to avoid in this case is generating values that are near the extreme maximum or minimum of float. Expanding the value range would probably still be acceptable with the current tolerance, which is derived **not only** from the cross‑lane sum **but also** includes a rounding‑error factor of 10.
BTW, consider that there are already enough API tests under `test/jdk/jdk/incubator/vector`, this test deliberately uses a narrower range, because its primary goal is to **verify the expected IR** generated on SVE, rather than to stress all numerical edge cases.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28960#issuecomment-3688409647
More information about the hotspot-compiler-dev
mailing list