[compiler-rt] [FMV][AArch64] Add initial AT_HWCAP3 / AT_HWCAP4 support (PR #161595)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 15:03:39 PDT 2025


================
@@ -25,12 +25,11 @@ void CONSTRUCTOR_ATTRIBUTE __init_cpu_features(void) {
   if (__isExynos9810())
     return;
 
-  unsigned long hwcap = getauxval(AT_HWCAP);
-  unsigned long hwcap2 = getauxval(AT_HWCAP2);
-
   __ifunc_arg_t arg;
   arg._size = sizeof(__ifunc_arg_t);
-  arg._hwcap = hwcap;
-  arg._hwcap2 = hwcap2;
+  arg._hwcap = getauxval(AT_HWCAP);
+  arg._hwcap2 = getauxval(AT_HWCAP2);
+  arg._hwcap3 = getauxval(AT_HWCAP3);
+  arg._hwcap4 = getauxval(AT_HWCAP4);
   __init_cpu_features_constructor(hwcap | _IFUNC_ARG_HWCAP, &arg);
----------------
petrhosek wrote:

The code is still referencing `hwcap` but the variable is no longer declared.

https://github.com/llvm/llvm-project/pull/161595


More information about the llvm-commits mailing list