diff options
author | Tamar Christina <tamar.christina@arm.com> | 2025-01-16 19:25:26 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2025-01-16 19:25:26 +0000 |
commit | 1ff85affe46623fe1a970de95887df22f4da9d16 (patch) | |
tree | 668f47284a241e5efddf653df4d677786cd20fda /libobjc/objc-private | |
parent | 773beeaafb0ea31bd4e308b64781731d64b571ce (diff) | |
download | gcc-1ff85affe46623fe1a970de95887df22f4da9d16.zip gcc-1ff85affe46623fe1a970de95887df22f4da9d16.tar.gz gcc-1ff85affe46623fe1a970de95887df22f4da9d16.tar.bz2 |
AArch64: have -mcpu=native detect architecture extensions for unknown non-homogenous systems [PR113257]
in g:e91a17fe39c39e98cebe6e1cbc8064ee6846a3a7 we added the ability for
-mcpu=native on unknown CPUs to still enable architecture extensions.
This has worked great but was only added for homogenous systems.
However the same thing works for big.LITTLE as in such system the cores must
have the same extensions otherwise it doesn't fundamentally work.
i.e. task migration from one core to the other wouldn't work.
This extends the same handling to non-homogenous systems.
gcc/ChangeLog:
PR target/113257
* config/aarch64/driver-aarch64.cc (get_cpu_from_id, DEFAULT_CPU): New.
(host_detect_local_cpu): Use it.
gcc/testsuite/ChangeLog:
PR target/113257
* gcc.target/aarch64/cpunative/info_34: New test.
* gcc.target/aarch64/cpunative/native_cpu_34.c: New test.
* gcc.target/aarch64/cpunative/info_35: New test.
* gcc.target/aarch64/cpunative/native_cpu_35.c: New test.
Co-authored-by: Richard Sandiford <richard.sandiford@arm.com>
Diffstat (limited to 'libobjc/objc-private')
0 files changed, 0 insertions, 0 deletions