Skip to content

Add Hygon C86-4G targets and CPU identity metadata - #170

Open
hieco-hpc wants to merge 7 commits into
archspec:masterfrom
hieco-hpc:hygon-c86-4g-support
Open

hieco-hpc wants to merge 7 commits into
archspec:masterfrom
hieco-hpc:hygon-c86-4g-support

Conversation

@hieco-hpc

@hieco-hpc hieco-hpc commented Nov 10, 2026 •

Copy link
Copy Markdown

Hygon develops x86-64 CPUs for servers and workstations. This PR adds C86-4G M4/M6/M7/M8 targets for Archspec and downstream consumers such as Spack.

The changes include:

  • Four architecture definitions, initially with GCC/Clang native and generic fallback mappings.
  • Optional identity metadata and schema mapping HygonGenuine, family 24, models 4/6/7/8 to the corresponding targets.

The ISA profiles follow GCC 16.2.0. GCC retains separate M7/M8 targets despite identical ISA masks, motivating identity-assisted selection among compatible targets. The companion Python change preserves the existing compatibility checks.

Target names use underscores to satisfy Archspec’s existing no-hyphens constraint; compiler mappings retain the native hyphenated names. Native mappings start at GCC 16.2 and Clang 23.1.

Validation: JSON schema and jq formatting checks pass. With the companion Python change, 60 targeted tests pass, covering identity selection and compiler mappings. On M4 hardware, the paired changes detect c86_4g_m4; the generated GCC 11.4 fallback flags pass an AVX2/FMA compile/run smoke test. M6/M7/M8 use compiler sources and synthetic inputs.

Related: archspec#278. Companion implementation: archspec#280.

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.

1 participant