Skip to content

Commit

Permalink
Mark SVE targets as broken on macOS on A64
Browse files Browse the repository at this point in the history
  • Loading branch information
johnplatts committed Oct 31, 2024
1 parent 1eb6fa5 commit 1d5cc07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hwy/detect_targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d5cc07

Please sign in to comment.