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

AArch64: generate better code for Vector API allTrue

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      aarch64
    • OS:
      generic

      Description

                  "andr $tmp, T8B, $src1, $src2\t# src2 is maskAllTrue\n\t"
                  "notr $tmp, T8B, $tmp\n\t"
                  "addv $tmp, T8B, $tmp\n\t"
                  "umov $dst, $tmp, B, 0\n\t"
                  "cmp $dst, 0\n\t"
                  "cset $dst"

      Could be optimized to:

                  "uminv $tmp, T8B, $src1\n\t"
                  "umov $dst, $tmp, B, 0\n\t"
                  "cmp $dst, 0xff\n\t"
                  "cset $dst"

      jmh:
      https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/bigdata/BooleanArrayCheck.java

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              njian Ningsheng Jian
              Reporter:
              njian Ningsheng Jian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: