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

AArch64: Incorrect match rule for negL_reg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b21
    • aarch64

      OpenJDK AArch64 c2 compiler generates:

        0x0000ffffa0b4a858: mov x10, xzr
        0x0000ffffa0b4a85c: sub x0, x10, x1 ;*lneg {reexecute=0 rethrow=0 return_oop=0}

      to get a simple neg value.
      It should use NEG instruction instead.
      c1 uses neg instruction.

            yzhang Yang Zhang
            yzhang Yang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: