On Tue, 17 Mar 2026 04:27:32 GMT, Lei Zhu <[email protected]> wrote:

>> Adds jtreg tests for `Bfloat16.toString()`.
>> 
>> The tests cover special values, representative finite values, boundary cases 
>> for standard and scientific notation,
>> NaN payloads, and round-trip verification for all Bfloat16 bit patterns.
>> Additionally, they verify that the results returned by the static and 
>> instance `toString` methods are consistent.
>
> Lei Zhu has refreshed the contents of this pull request, and previous commits 
> have been removed. The incremental views will show differences compared to 
> the previous content of the PR. The pull request contains four new commits 
> since the last revision:
> 
>  - 8375224: Add tests for Bfloat16.toString()
>  - 8375224: Add tests for Bfloat16.toString()
>  - 8375224: Add tests for Bfloat16.toString()
>  - 8375224: Add tests for Bfloat16.toString()

The Bfloat16 code is in an incubating module, so subject to change at any time, 
maybe even removed.
The roundtrip tests are already present in the code.
The spec for Bfloat16.toString() is neither complete, nor definitive, so the 
tests are not quite indicative.

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

PR Comment: https://git.openjdk.org/valhalla/pull/2235#issuecomment-4073692735

Reply via email to