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

Rotate vectors don't support byte or short

XMLWordPrintable

    • b11
    • 18
    • b26
    • generic
    • generic

        static void test_fun(byte[] a0, int[] b0, byte[] c0) {
          for (int i=0; i<ARRLEN; i++) {
            c0[i] = (byte)(a0[i] << (7) | a0[i] >>> (-7));
          }
        }

      when I implement RotateLeftV in loongarch.ad, I found this executed by c2 vector and executed by interpreter are not equal.

      It's executed on x86 would create an assert error.

      #
      # Internal Error (/home/wanghaomin/jdk/src/hotspot/share/opto/vectornode.cpp:347), pid=26469, tid=26485
      # assert(false) failed: not supported: byte
      #

            wanghaomin Haomin Wang
            wanghaomin Haomin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: