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

AArch64: Matching rule for ubfiz

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • 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.

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

              Created:
              Updated:
              Resolved: