RFR: 8293991: java/lang/Float/Binary16ConversionNaN.java fails on silent NaN conversions [v2]

Aleksey Shipilev shade at openjdk.org
Thu Sep 22 18:48:41 UTC 2022


On Thu, 22 Sep 2022 13:26:17 GMT, Raffaello Giulietti <duke at openjdk.org> wrote:

>> test/jdk/java/lang/Float/Binary16ConversionNaN.java line 81:
>> 
>>> 79: 
>>> 80:     private static int sign(short binary16) {
>>> 81:         return (binary16 & 0xf000);
>> 
>> I think this should read
>> `return binary16 & 0x8000;`
>
> Further, if the only modified bit is the quier/signaling bit the test could be more specific

Test is reverted, so there is nothing to be done here :)

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

PR: https://git.openjdk.org/jdk/pull/10333


More information about the core-libs-dev mailing list