Skip to content

Add Neoverse V3 (AWS Graviton5) support - #168

Merged
alalazo merged 1 commit into
archspec:masterfrom
Sbozzolo:neoverse-v3
Nov 12, 2026
Merged

alalazo merged 1 commit into
archspec:masterfrom
Sbozzolo:neoverse-v3

Conversation

@Sbozzolo

@Sbozzolo Sbozzolo commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds the Arm Neoverse V3 (cpupart 0xd84), as found in AWS Graviton5 (e.g. c9g), and makes neoverse_v3ae descend from it.

#160 added neoverse_v3ae and noted that a neoverse_v3 parent was missing for lack of hardware to test on. This PR adds it, based on a c9g.xlarge instance (Ubuntu 22.04, kernel 6.8).

Features

The feature list is the one of neoverse_v3ae without sm3, sm4, and svesm4:

With this, the features of neoverse_v3ae are a superset of those of neoverse_v3, so neoverse_v3ae now descends from neoverse_v3. The two remain distinguished by cpupart during detection.

neoverse_v3 descends from neoverse_v2 and armv9.2a (the previous parents of neoverse_v3ae) and also from neoverse_n2, whose features it strictly contains. This also fixes the one inconsistency on master reported 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

  • GCC: -mcpu=neoverse-v3 was 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=native resolves to neoverse-v3, while GCC 11 and 12 reject -mcpu=neoverse-v3.
  • Clang: -mcpu=neoverse-v3 is available from LLVM 19.

The same GCC 14.3 backport also added -mcpu=neoverse-v3ae, so this PR lowers the minimum GCC version for neoverse_v3ae from 15.0 to 14.3.

Test

tests/targets/linux-ubuntu22.04-neoverse_v3 is the first processor from /proc/cpuinfo on the c9g.xlarge instance. The corresponding tests are in archspec/archspec#276.

With this JSON, the archspec/archspec test 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.

@alalazo alalazo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@alalazo
alalazo merged commit a76f289 into archspec:master Nov 12, 2026
1 check passed
@Sbozzolo

Copy link
Copy Markdown
Contributor Author

Opened #171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants