JDK-8320715 : Improve the tests of test/hotspot/jtreg/compiler/intrinsics/float16
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-11-26
  • Updated: 2024-05-21
  • Resolved: 2023-11-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22
21.0.4Fixed 22 b26Fixed
Related Reports
Relates :  
Description
There are several areas where improvements can be made:
1. test should not exit early before all test cases have run.
2. some output hide the data details, which should be printed out to help debug any potential issues, e.g. currently it could output some log like below in case of wrong implementation of a ConvF2HF intrinsic:
`Inconsistent result for Float.floatToFloat16(NaN/ff802000): fc01 != fc01`, which is rather confusing, not helpful. Suggested output would be: `Inconsistent result for Float.floatToFloat16(NaN/ff802000): fc01(64513) != fc01(-1023)`
Comments
The tests are added by JDK-8302976, the 17u and 11u backport depends on this, will do this when it's backported.
21-05-2024

Fix request [21u] I backport this for parity with 21.0.3-oracle. No risk, only a test change. Clean backport. Test pass. SAP nightly testing passed.
17-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/577 Date: 2024-05-16 05:30:42 +0000
16-05-2024

Changeset: 5dcf3a56 Author: Hamlin Li <mli@openjdk.org> Date: 2023-11-29 08:01:40 +0000 URL: https://git.openjdk.org/jdk/commit/5dcf3a56cb425c3419273636729d2d83603be0d2
29-11-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16815 Date: 2023-11-26 10:48:44 +0000
26-11-2023