[AArch64] Add Linux hwcap strings for some extensions

Programming / Compilers / GCC - ktkachov [138bc75d-0d04-0410-961f-82ee72b054a4] - 3 September 2019 08:06 EDT

This patch adds feature strings for some of the extensions. This string is what is read from /proc/cpuinfo on Linux systems and used during -march=native detection.

The strings are taken from the kernel source tree at: https://github.com/torvalds/linux/blob/master/arch/arm64/kernel/cpuinfo.c#L45



- config/aarch64/aarch64-option-extensions.def (sb): Add feature string. (ssbs): Likewise. (sve2): Likewise. (sve2-sm4): Likewise. (sveaes): Likewise. (svesha3): Likewise. (svebitperm): Likewise.

e1c786d6b5c [AArch64] Add Linux hwcap strings for some extensions
gcc/ChangeLog | 11 +++++++++++
gcc/config/aarch64/aarch64-option-extensions.def | 14 +++++++-------
2 files changed, 18 insertions(+), 7 deletions(-)

Upstream: gcc.gnu.org


  • Share