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

AArch64: Support SVE operations with encodable immediates

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • 18
    • hotspot
    • SVE featured AArch64 CPUs

    • 18
    • b25
    • aarch64
    • 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

              pli Pengfei Li
              pli Pengfei Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: