JDK-8359256 : AArch64: Use SHA3 GPR intrinsic where it's faster
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2025-06-11
  • Updated: 2025-11-19
  • Resolved: 2025-11-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b24Fixed
Related Reports
Cloners :  
Relates :  
Relates :  
Description
JDK-8337666 implementation is enabled with '-XX:+UnlockDiagnosticVMOptions -XX:+UseSHA3Intrinsics -XX:-UseSIMDForSHA3Intrinsic'. It is not slower than C2 generated code on any tested platform. For hardware that supports SHA3 extension there is JDK-8252204 implementation. The only known platform where it is faster than GPR version is Apple Silicon, and on some platforms such as Graviton 3 it is slower than C2 version.

The updated flag detection can be like:

* If no SHA3 extension, use GPR version;
* If Neoverse with SHA3 extension, still use GPR version;
* Otherwise use extension-based version.
Comments
After this change I see a test failures in compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java on a mac with m2 CPU. I guess the test has to be adjusted to the change.
06-11-2025

Changeset: c173d416 Branch: master Author: Boris Ulasevich <bulasevich@openjdk.org> Date: 2025-11-06 12:56:37 +0000 URL: https://git.openjdk.org/jdk/commit/c173d416f749348bee42e1a9436a999700d0f0e8
06-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27726 Date: 2025-10-09 13:26:51 +0000
10-10-2025