Skip to content

Commit 0c02811

Browse files
committed
fixup! [compiler-rt][AArch64][FMV] Use the hw.optional.arm.caps fast path (#95275)
#95275 (comment)
1 parent 61571e9 commit 0c02811

File tree

1 file changed

+15
-0
lines changed
  • compiler-rt/lib/builtins/cpu_model/aarch64/fmv

1 file changed

+15
-0
lines changed

compiler-rt/lib/builtins/cpu_model/aarch64/fmv/apple.inc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55
#if __has_include(<arm/cpu_capabilities_public.h>)
66
#include <arm/cpu_capabilities_public.h>
77
#define HAS_CPU_CAPABILITIES_PUBLIC_H 1
8+
9+
// FB13964283 - A few of these didn't make it into the public SDK yet.
10+
#ifndef CAP_BIT_FEAT_SME
11+
#define CAP_BIT_FEAT_SME 40
12+
#endif
13+
#ifndef CAP_BIT_FEAT_SME2
14+
#define CAP_BIT_FEAT_SME2 41
15+
#endif
16+
#ifndef CAP_BIT_FEAT_SME_F64F64
17+
#define CAP_BIT_FEAT_SME_F64F64 42
18+
#endif
19+
#ifndef CAP_BIT_FEAT_SME_I16I64
20+
#define CAP_BIT_FEAT_SME_I16I64 43
21+
#endif
22+
823
#endif
924

1025
static bool isKnownAndSupported(const char *name) {

0 commit comments

Comments
 (0)