]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64, Darwin: Initial implementation of Apple cores [PR113257].
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 15 Oct 2023 09:19:22 +0000 (10:19 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 7 Apr 2025 16:34:41 +0000 (17:34 +0100)
commit3a77a567b1028a28ecbb2f2eadc351d8bd004352
tree21182ccc6d8e75fe418f7b03971d3abd3f6f645e
parent3b1cf36eb47e217b6f093abd9f76ea358d456e2e
aarch64, Darwin: Initial implementation of Apple cores [PR113257].

After discussion with the open source support team at Apple, we have
established that the cores conform to the 8.5 and 8.6 requirements.
One of the mandatory features (FEAT_SPECRES) is not exposed (or
available) in user-space code but is supported for privileged code.

The values for chip IDs and the LITTLE.big variants have been taken
from lists in the XNU and LLVM sources.

PR target/113257

gcc/ChangeLog:

* config/aarch64/aarch64-cores.def (AARCH64_CORE): Add Apple-a12,
Apple-M1, Apple-M2, Apple-M3 with expanded names to allow for the
LITTLE.big versions.
* config/aarch64/aarch64-tune.md: Regenerate.
* doc/invoke.texi: Add apple-m1,2 and 3 cores to the ones listed
for arch and tune selections.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/aarch64-tune.md
gcc/doc/invoke.texi