]> gcc.gnu.org Git - gcc.git/commit
aarch64: Define __ARM_FEATURE_RCPC
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 4 Oct 2022 15:39:18 +0000 (16:39 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 4 Oct 2022 15:39:18 +0000 (16:39 +0100)
commitc1b0a767f04a8ccbaff2a7b71d5c817cdb469630
tree7e81ad2ee5927e60ab3a85c289b91a496021ff85
parent8792047470073df0da4a5b91997d6058193d7676
aarch64: Define __ARM_FEATURE_RCPC

https://github.com/ARM-software/acle/pull/199 adds a new feature
macro for RCPC, for use in things like inline assembly.  This patch
adds the associated support to GCC.

Also, RCPC is required for Armv8.3-A and later, but the armv8.3-a
entry didn't include it.  This was probably harmless in practice
since GCC simply ignored the extension until now.  (The GAS
definition is OK.)

gcc/
* config/aarch64/aarch64.h (AARCH64_ISA_RCPC): New macro.
* config/aarch64/aarch64-arches.def (armv8.3-a): Include RCPC.
* config/aarch64/aarch64-cores.def (thunderx3t110, zeus, neoverse-v1)
(neoverse-512tvb, saphira): Remove RCPC from these Armv8.3-A+ cores.
* config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins): Define
__ARM_FEATURE_RCPC when appropriate.

gcc/testsuite/
* gcc.target/aarch64/pragma_cpp_predefs_1.c: Add RCPC tests.
gcc/config/aarch64/aarch64-arches.def
gcc/config/aarch64/aarch64-c.cc
gcc/config/aarch64/aarch64-cores.def
gcc/config/aarch64/aarch64.h
gcc/testsuite/gcc.target/aarch64/pragma_cpp_predefs_1.c
This page took 0.064543 seconds and 6 git commands to generate.