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

AArch64: Implement C2 optimizations using "SHA3" instructions.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 15
    • hotspot

      Armv8.2 optionally provides "ARMv8.2-SHA, SHA2-512 and SHA3 functionality".

      The goal of this task is to optimize the SHA3 implementation in Java on AArch64.

      Ideally, this would be done by implementing (in aarch64.ad) the new instructions:
       - EOR3 Three-way Exclusive OR (page C7-1479)
       - RAX1 Rotate and Exclusive OR (page C7-1892)
       - XAR Exclusive OR and Rotate (page C7-2303)
       - BCAX Bit Clear and Exclusive OR (page C7-1418)

      This would not require another elaborate generated stub like the sha2 optimizations, and it might even optimize other Java code.

      Hopefully C2 would optimize the Java code in sun.security.provider.SHA3.java into something that looked like the listing in "K10.2.2 Use of the SHA3 instructions".

            dlemmond Dan Lemmond
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: