]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Align lrcpc3 FEAT_STRING with /proc/cpuinfo 'Features' entry
authorVictor Do Nascimento <victor.donascimento@arm.com>
Tue, 5 Mar 2024 20:38:26 +0000 (20:38 +0000)
committerVictor Do Nascimento <victor.donascimento@arm.com>
Wed, 27 Mar 2024 10:33:46 +0000 (10:33 +0000)
commit258defbdee985c8f27c33e9f533c19d059941972
tree6f3256828cea9576c63cf099b9dd0f0e65ee4e8e
parentd9ea5181800fee3c0c21c33a463d8ca90b004ff6
aarch64: Align lrcpc3 FEAT_STRING with /proc/cpuinfo 'Features' entry

Due to the Linux kernel exposing the lrcpc3 architectural feature as
"lrcpc3", this patch corrects the relevant FEATURE_STRING entry in the
"rcpc3" AARCH64_OPT_FMV_EXTENSION macro, such that the feature can be
correctly detected when doing native compilation on rcpc3-enabled
targets.

gcc/ChangeLog:

* config/aarch64/aarch64-option-extensions.def (rcpc3):
Fix FEATURE_STRING field to "lrcpc3".

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/cpunative/info_24: New.
* gcc.target/aarch64/cpunative/native_cpu_24.c: Likewise.
gcc/config/aarch64/aarch64-option-extensions.def
gcc/testsuite/gcc.target/aarch64/cpunative/info_24 [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/cpunative/native_cpu_24.c [new file with mode: 0644]