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

C2: Floating-point min/max operations on vectors intermittently produce wrong results for NaN values

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b21
    • Introduced In Version:
      16
    • Resolved In Build:
      b24

      Description

      Some jdk/incubator/vector/ tests intermittently fail on AVX512-capable hardware:

      FAILED: MINDouble512VectorTests(double[-i * 5], double[cornerCaseValue(i)])
      java.lang.AssertionError: (-125.0, NaN) at index #25 expected [NaN] but found [-125.0]
              at org.testng.Assert.fail(Assert.java:94)
              at org.testng.Assert.failNotEquals(Assert.java:496)
              at org.testng.Assert.assertEquals(Assert.java:125)
              at Double512VectorTests.assertArraysEquals(Double512VectorTests.java:339)
              at Double512VectorTests.MINDouble512VectorTests(Double512VectorTests.java:1960)

      I suspect auto-vectorizer is also affected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vlivanov Vladimir Ivanov
              Reporter:
              vlivanov Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: