From 1d5cc073467fe38c79de229797e90d07ea287cf7 Mon Sep 17 00:00:00 2001 From: John Platts Date: Thu, 31 Oct 2024 07:42:46 -0500 Subject: [PATCH] Mark SVE targets as broken on macOS on A64 --- hwy/detect_targets.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hwy/detect_targets.h b/hwy/detect_targets.h index 175efee2dd..d5f3ab07ae 100644 --- a/hwy/detect_targets.h +++ b/hwy/detect_targets.h @@ -223,8 +223,12 @@ #endif // SVE[2] require recent clang or gcc versions. -#if (HWY_COMPILER_CLANG && HWY_COMPILER_CLANG < 1900) || \ - (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000) + +// In addition, SVE[2] is not currently supported by any Apple CPU (at least up +// to and including M4 and A18). +#if (HWY_COMPILER_CLANG && HWY_COMPILER_CLANG < 1900) || \ + (HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1000) || \ + HWY_OS_APPLE #define HWY_BROKEN_SVE (HWY_SVE | HWY_SVE2 | HWY_SVE_256 | HWY_SVE2_128) #else #define HWY_BROKEN_SVE 0