Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293991

java/lang/Float/Binary16ConversionNaN.java fails on silent NaN conversions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • core-libs
    • b17

      Reliably reproduces on x86-32 with FPU:

      ```
      $ CONF=linux-x86-server-fastdebug make test TEST=java/lang/Float/Binary16ConversionNaN.java TEST_VM_OPTS="-XX:UseAVX=0 -XX:UseSSE=0"
      ...
      Roundtrip failure on NaN value 7de2 got back 7fe2
      Roundtrip failure on NaN value fde2 got back ffe2
      ```

      Since there are many NaN values in FP16 -- basically any non-zero significand works, we should probably just relax the test.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: