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

AArch64: Support SVE operations with encodable immediates

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Environment:

      SVE featured AArch64 CPUs

    • Subcomponent:
    • Introduced In Version:
      18
    • CPU:
      aarch64
    • OS:
      generic

      Description

      For below case

          for(int i = 0; i < LENGTH; i++) {
            c[i] = a[i] + 2;
          }

      AArch64 backend generates SVE add instructions with a immediate move

      mov z16.s, #2
      add z17.s, z17.s, z16.s

      Considering sve has supported basic binary operations with immediate,
      we should optimize this pattern, and the new generated vector
      instructions should be like

      add z16.s, z16.s, #2

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pli Pengfei Li
              Reporter:
              pli Pengfei Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: