AArch64: Matching rule for ubfiz

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9, 10
    • Component/s: hotspot
    • b22
    • aarch64
    • linux

      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.

            Assignee:
            Ningsheng Jian (Inactive)
            Reporter:
            Ningsheng Jian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: