[compiler-rt] [FMV][AArch64] Add initial AT_HWCAP3 / AT_HWCAP4 support (PR #161595)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 15:04:46 PDT 2025
================
@@ -12,10 +12,14 @@ void CONSTRUCTOR_ATTRIBUTE __init_cpu_features(void) {
unsigned long hwcap = getauxval(AT_HWCAP);
unsigned long hwcap2 = getauxval(AT_HWCAP2);
+ unsigned long hwcap3 = getauxval(AT_HWCAP3);
+ unsigned long hwcap4 = getauxval(AT_HWCAP4);
__ifunc_arg_t arg;
arg._size = sizeof(__ifunc_arg_t);
arg._hwcap = hwcap;
arg._hwcap2 = hwcap2;
+ arg._hwcap3 = hwcap3;
+ arg._hwcap4 = hwcap4;
__init_cpu_features_constructor(hwcap | _IFUNC_ARG_HWCAP, &arg);
----------------
brad0 wrote:
I'll drop the early exit as it doesn't make any sense.
https://github.com/llvm/llvm-project/pull/161595
More information about the llvm-commits
mailing list