Repository navigation
Conversation
added 7 commits
November 10, 2026 09:27
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.
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:
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
jqformatting checks pass. With the companion Python change, 60 targeted tests pass, covering identity selection and compiler mappings. On M4 hardware, the paired changes detectc86_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.