JDK-8309109 : AArch64: [TESTBUG] compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java fails on Neoverse N2 and V1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18,19,20,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2023-05-30
  • Updated: 2025-07-03
  • Resolved: 2023-06-28
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 17 JDK 21 JDK 22
17.0.14Fixed 21.0.3Fixed 22 b04Fixed
Related Reports
Relates :  
Relates :  
Description
`UseSHA3Intrinsics` was introduced in JDK-8252204, but it was not
auto-enabled due to the lack of real hardware. 

After JDK-8297092, `UseSHA3Intrinsics` is only auto-enabled on hardware with performance benefit. See the code https://github.com/openjdk/jdk/pull/11382/files#diff-a87e260510f34ca7d9b0feb089ad982be8268c5c8aa5a71221f6738b051ea488R338-R345

As a result, test case compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java fails on Neoverse N2 and V1.
Comments
[jdk17u-fix-request] Approval Request from sendaoYan Clean backport to fix the test bug. Test-fix only, no risk.
21-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2978 Date: 2024-10-21 01:08:41 +0000
21-10-2024

Fix request (21u) Clean backport. Fix for the test bug Review 21u-dev: https://github.com/openjdk/jdk21u-dev/pull/244
08-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/244 Date: 2024-02-07 20:19:23 +0000
07-02-2024

Changeset: afdaa2a3 Author: Hao Sun <haosun@openjdk.org> Date: 2023-06-28 02:00:09 +0000 URL: https://git.openjdk.org/jdk/commit/afdaa2a3305461538f3a36de2b0b540fe2da9b37
28-06-2023

ILW = Test fails because requires condition does not work as expected (test bug), single test on Neoverse, no workaround = MLH = P4
22-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14551 Date: 2023-06-20 06:35:15 +0000
20-06-2023

This test case compiler/intrinsics/sha/cli/TestUseSHA3IntrinsicsOptionOnSupportedCPU.java was introduced in JDK-8252204. Due to the lack of real hardware, it was not fulled evaluted. I suppose, this case would fail on Neonverse N2/V1 as well then. But it was not exposed since the jtreg test case was only run on simulator. Hence, the "Affects Versions" label is assigned to "17, 18, 19, 20, 21".
19-06-2023