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

AArch64: Implement C2 optimizations using "SHA3" instructions.

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      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".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                drwhite Derek White
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: