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

AArch64: Matching rule for ubfiz

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      aarch64
    • OS:
      linux

      Description

      For below java code:

      (s[0] & 0xf) << 3; // s[0] can be any primitive type.

      AArch64 OpenJDK c2 compiler generates:

      and w11, w10, #0xf
      lsl w0, w11, #3

      It can be improved to generate (gcc does):

      ubfiz w0, w0, #3, #4

      Daniel Stewart will contribute a patch for this.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: