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

VectorAPI rotate operation optimization

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 17
    • hotspot
    • b08
    • generic

      Current VectorAPI Java side implementation expresses rotateLeft and rotateRight operations using following operations:-

          vec1 = lanewise(VectorOperators.LSHL, n)
          vec2 = lanewise(VectorOperators.LSHR, n)
          res = lanewise(VectorOperations.OR, vec1 , vec2)

      To move this handling from Java side to C2 compiler side which currently facilitates dismantling the rotate operation into above operations if target ISA does not support a direct rotate instruction.

            jbhateja Jatin Bhateja
            jbhateja Jatin Bhateja
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: