Landing: 2a64a63d9825

Project / Subsystem

gcc / i386

Date

2026-04-29

Author

Xin Liu

Commit

2a64a63d982584618af1de1b5d5f1f1c3ec03502

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
i386
patch_id
commit_hash
2a64a63d982584618af1de1b5d5f1f1c3ec03502
source_type
github
headline
i386: Add support for HYGON c86-4g series processors
tldr
Adds support for HYGON c86-4g series processors with appropriate cost models and tuning.
author
Xin Liu
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • i386
  • hygon
  • optimization
  • architecture
discussion_id_link
bugzilla_pr
date
2026-04-29T00:00:00.000Z

This commit introduces support for HYGON c86-4g series processors (c86-4g-m4, c86-4g-m6, and c86-4g-m7) in GCC. Without this support, using -march=native on HYGON machines would result in suboptimal code generation. The patch enables the use of -m{arch,tune}=c86-4g and -m{4,6,7} options, providing appropriate cost models and tuning parameters based on the hardware characteristics of these processors. New machine description files are included to model the pipeline for each processor variant.