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

AArch64: [vector] Add missing rules for VectorMaskCast

XMLWordPrintable

    • aarch64
    • generic

      After https://github.com/openjdk/panama-vector/pull/113 has been merged, AArch64 would fail due to the missing of VectorMaskCast between different type.

      ```
      public static VectorMask<Short> microMaskCastByte64ToShort128() {
             return bmask64.cast(ShortVector.SPECIES_128);
      }
      ```



      o373 VectorMaskCast === _ o404 [[o443 ]] #vectormask[8]:{short}

      --N: o373 VectorMaskCast === _ o404 [[o443 ]] #vectormask[8]:{short}

         --N: o404 LoadVectorMask === _ o7 o401 [[o373 ]] @bool[int:>=0]:NotNull:exact[0] *, idx=8; mismatched #vectormask[8]:{byte}
         PREG 0 PREG
         PREGGOV 0 PREGGOV

      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/matcher.cpp:1713
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/eriliu02/entllt/openjdk/panama-vector/jdk_src/src/hotspot/share/opto/matcher.cpp:1713), pid=2429349, tid=2429362
      # assert(false) failed: bad AD file
      #
      # JRE version: OpenJDK Runtime Environment (18.0) (fastdebug build 18-internal+0-git-5f57f548f1)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 18-internal+0-git-5f57f548f1, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x13cde70][thread 2429350 also had an error]
        Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0xa50
      #
      # Core dump will be written. Default location: /tmp/core.2429349
      #
      # An error report file with more information is saved as:
      # /space/projectscratch_dsg_space/eriliu02/work/entllt/hs_err_pid2429349.log
      #
      # Compiler replay data is saved as:
      # /space/projectscratch_dsg_space/eriliu02/work/entllt/replay_pid2429349.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

            eliu Eric Liu
            eliu Eric Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: