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

[Vector API] Crash in Assembler::evpermd when code-gen for masked rearrange operation on AVX512

XMLWordPrintable

      Two tests crash in Assembler::evpermd for masked rearrange operation on AVX512 with -ea -esa -Xcomp -XX:CompileThreshold=100
        jdk/incubator/vector/Float128VectorTests.java
        jdk/incubator/vector/Int128VectorTests.java

      ```
      test Float128VectorTests.RearrangeFloat128VectorTests(float[-i * 5], shuffle[random]): success
      test Float128VectorTests.RearrangeFloat128VectorTests(float[i * 5], shuffle[random]): success
      test Float128VectorTests.RearrangeFloat128VectorTests(float[i + 1], shuffle[random]): success
      test Float128VectorTests.RearrangeFloat128VectorTests(float[cornerCaseValue(i)], shuffle[random]): success
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/assembler_x86.cpp:8965
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/panama-vector/src/hotspot/cpu/x86/assembler_x86.cpp:8965), pid=25198, tid=25213
      # Error: assert(VM_Version::supports_evex() && vector_len > AVX_128bit) failed
      #
      # JRE version: OpenJDK Runtime Environment (18.0) (fastdebug build 18-internal+0-adhoc.jvm.panama-vector)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 18-internal+0-adhoc.jvm.panama-vector, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x63a988] Assembler::evpermd(XMMRegisterImpl*, KRegisterImpl*, XMMRegisterImpl*, XMMRegisterImpl*, bool, int)+0x148
      #
      ```

      ```
      test Int128VectorTests.RearrangeInt128VectorTests(int[-i * 5], shuffle[random]): success
      test Int128VectorTests.RearrangeInt128VectorTests(int[i * 5], shuffle[random]): success
      test Int128VectorTests.RearrangeInt128VectorTests(int[i + 1], shuffle[random]): success
      test Int128VectorTests.RearrangeInt128VectorTests(int[cornerCaseValue(i)], shuffle[random]): success
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/assembler_x86.cpp:8965
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/panama-vector/src/hotspot/cpu/x86/assembler_x86.cpp:8965), pid=20494, tid=20511
      # Error: assert(VM_Version::supports_evex() && vector_len > AVX_128bit) failed
      #
      # JRE version: OpenJDK Runtime Environment (18.0) (fastdebug build 18-internal+0-adhoc.jvm.panama-vector)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 18-internal+0-adhoc.jvm.panama-vector, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x63a988] Assembler::evpermd(XMMRegisterImpl*, KRegisterImpl*, XMMRegisterImpl*, XMMRegisterImpl*, bool, int)+0x148
      #
      ```

            jiefu Jie Fu
            jiefu Jie Fu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: