Repository navigation
Add Neoverse V3 (AWS Graviton5) support - #168
Merged
Merged
Conversation
alalazo
approved these changes
Nov 12, 2026
alalazo
left a comment
Member
There was a problem hiding this comment.
LGTM. It would be good if we could find information on arm and nvhpc compilers, and add it to the neoverse-v3* microarchitectures, but that can be done in a following PR.
This was referenced Nov 12, 2026
Contributor
Author
|
Opened #171 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Arm Neoverse V3 (
cpupart0xd84), as found in AWS Graviton5 (e.g.c9g), and makesneoverse_v3aedescend from it.#160 added
neoverse_v3aeand noted that aneoverse_v3parent was missing for lack of hardware to test on. This PR adds it, based on ac9g.xlargeinstance (Ubuntu 22.04, kernel 6.8).Features
The feature list is the one of
neoverse_v3aewithoutsm3,sm4, andsvesm4:sm3/sm4/svesm4. They are optional, and Removesm3,*sm4fromneoverse_v*#115 already dropped them from otherneoverse_v*entries.rng, which is not included becauseneoverse_v3aedoes not have it, and it is optional.ssbsis reported but not included, as in Remove ssbs from neoverse* CPUs #120.With this, the features of
neoverse_v3aeare a superset of those ofneoverse_v3, soneoverse_v3aenow descends fromneoverse_v3. The two remain distinguished bycpupartduring detection.neoverse_v3descends fromneoverse_v2andarmv9.2a(the previous parents ofneoverse_v3ae) and also fromneoverse_n2, whose features it strictly contains. This also fixes the one inconsistency onmasterreported by the feature-inclusion check proposed in #162 (neoverse_v3ae has every feature of neoverse_n2 and more, but does not descend from it); with this PR, that check reports no violations.Compilers
-mcpu=neoverse-v3was added in GCC 15.1 and backported to 14.3 (it is not in 14.1 or 14.2). On the Graviton5 instance, GCC 14.3-mcpu=nativeresolves toneoverse-v3, while GCC 11 and 12 reject-mcpu=neoverse-v3.-mcpu=neoverse-v3is available from LLVM 19.The same GCC 14.3 backport also added
-mcpu=neoverse-v3ae, so this PR lowers the minimum GCC version forneoverse_v3aefrom 15.0 to 14.3.Test
tests/targets/linux-ubuntu22.04-neoverse_v3is the first processor from/proc/cpuinfoon thec9g.xlargeinstance. The corresponding tests are in archspec/archspec#276.With this JSON, the
archspec/archspectest suite passes (677 tests), including new cases for detection on this host,neoverse_v2 < neoverse_v3 < neoverse_v3ae, and the GCC 14.2/14.3 flag boundaries.