Skip to content

Add initial support for Apple M3 and Apple M4#141

Merged
alalazo merged 2 commits into
masterfrom
features/apple-m3-m4
Sep 30, 2025
Merged

Add initial support for Apple M3 and Apple M4#141
alalazo merged 2 commits into
masterfrom
features/apple-m3-m4

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Sep 10, 2025

I'm not sure this is entirely correct, but we can refine later:

% clang -dM -E - -mcpu=apple-m4 < /dev/null | grep __ARM_FEATURE_ | cut -d _ -f 5- | cut -d " " -f 1 | sort                  
AES
ATOMICS
BF16
BF16_SCALAR_ARITHMETIC
BF16_VECTOR_ARITHMETIC
BTI
CLZ
COMPLEX
CRC32
CRYPTO
DIRECTED_ROUNDING
DIV
DOTPROD
FMA
FP16_FML
FP16_SCALAR_ARITHMETIC
FP16_VECTOR_ARITHMETIC
FRINT
IDIV
JCVT
LDREX
LOCALLY_STREAMING
MATMUL_INT8
NUMERIC_MAXMIN
PAUTH
QRDMX
RCPC
SHA2
SHA3
SHA512
SME
SME2
UNALIGNED

% diff features_m2.txt features_m3.txt
% diff features_m4.txt features_m3.txt                                                                                       
22d21
< LOCALLY_STREAMING
31,32d29
< SME
< SME2

Comment thread cpu/microarchitectures.json
@alalazo alalazo force-pushed the features/apple-m3-m4 branch from 33f58d7 to 1446a71 Compare September 16, 2025 13:45
@alalazo alalazo merged commit e66bda8 into master Sep 30, 2025
1 check passed
@alalazo alalazo deleted the features/apple-m3-m4 branch September 30, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants