File tree Expand file tree Collapse file tree 5 files changed +28
-1
lines changed
src/__support/macros/properties Expand file tree Collapse file tree 5 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if(LIBC_TARGET_ARCHITECTURE_IS_X86_64)
99 set (ALL_CPU_FEATURES SSE2 SSE4_2 AVX AVX2 AVX512F AVX512BW FMA)
1010 set (LIBC_COMPILE_OPTIONS_NATIVE -march=native)
1111elseif (LIBC_TARGET_ARCHITECTURE_IS_AARCH64)
12- set (ALL_CPU_FEATURES " FullFP16" )
12+ set (ALL_CPU_FEATURES FullFP16 MOPS SVE SVE2 )
1313 set (LIBC_COMPILE_OPTIONS_NATIVE -mcpu=native)
1414endif ()
1515
Original file line number Diff line number Diff line change 1+ #include " src/__support/macros/properties/cpu_features.h"
2+
3+ #ifndef LIBC_TARGET_CPU_HAS_MOPS
4+ #error unsupported
5+ #endif
Original file line number Diff line number Diff line change 1+ #include " src/__support/macros/properties/cpu_features.h"
2+
3+ #ifndef LIBC_TARGET_CPU_HAS_SVE
4+ #error unsupported
5+ #endif
Original file line number Diff line number Diff line change 1+ #include " src/__support/macros/properties/cpu_features.h"
2+
3+ #ifndef LIBC_TARGET_CPU_HAS_SVE2
4+ #error unsupported
5+ #endif
Original file line number Diff line number Diff line change 1818#define LIBC_TARGET_CPU_HAS_FULLFP16
1919#endif
2020
21+ #if defined(__ARM_FEATURE_SVE)
22+ #define LIBC_TARGET_CPU_HAS_SVE
23+ #endif
24+
25+ #if defined(__ARM_FEATURE_SVE2)
26+ #define LIBC_TARGET_CPU_HAS_SVE2
27+ #endif
28+
29+ #if defined(__ARM_FEATURE_MOPS)
30+ #define LIBC_TARGET_CPU_HAS_MOPS
31+ #endif
32+
2133#if defined(__SSE2__)
2234#define LIBC_TARGET_CPU_HAS_SSE2
2335#define LIBC_TARGET_CPU_HAS_FPU_FLOAT
You can’t perform that action at this time.
0 commit comments