From a3668bf631eba572f52045b3d0b4db2c12f91b86 Mon Sep 17 00:00:00 2001 From: Jakub Sujak Date: Tue, 1 Apr 2025 10:40:44 +0100 Subject: [PATCH] Replace check for Advanced SIMD Although `hw.optional.AdvSIMD` is the replacement for `hw.optional .neon`, this parameter is not always present in different versions of the OS. This may lead to tests being erroneously skipped. Instead, we check if the machine supports `hw.optional.arm64` and, if true, we can assume Advanced SIMD support is always present. Signed-off-by: Jakub Sujak --- test/common/cpu_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/cpu_info.cpp b/test/common/cpu_info.cpp index 695b23ae..99770295 100644 --- a/test/common/cpu_info.cpp +++ b/test/common/cpu_info.cpp @@ -106,7 +106,7 @@ bool get_cap_support(CpuFeatures feature) { } #elif defined(__aarch64__) && defined(__APPLE__) const std::array, CpuFeatures::LAST_ELEMENT> cpu_caps{{ - {CpuFeatures::ADVSIMD, "hw.optional.AdvSIMD"}, + {CpuFeatures::ADVSIMD, "hw.optional.arm64"}, // Advanced SIMD is always present on arm64 {CpuFeatures::DOTPROD, "hw.optional.arm.FEAT_DotProd"}, {CpuFeatures::I8MM, "hw.optional.arm.FEAT_I8MM"}, {CpuFeatures::FP16, "hw.optional.arm.FEAT_FP16"}, -- GitLab