On Thu, 19 Nov 2026 20:01:47 GMT, Joe Darcy <[email protected]> wrote:
> Change Float16.shortValue to do a one-step conversion with `short` without an > intermediate stop through `int`. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Same bug exists for any fp to subint conversion. In the java bytecode, f2i and d2i are saturating but i2c/i2s/i2b are truncating, so a fp that's out of char/short range can get a weird conversion. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33980#issuecomment-7027254501
