Add support for Apple's vendor-specific aarch64 instructions#8316
Merged
Conversation
plafosse
reviewed
Jul 14, 2026
plafosse
reviewed
Jul 14, 2026
plafosse
reviewed
Jul 14, 2026
plafosse
requested changes
Jul 14, 2026
plafosse
left a comment
Member
There was a problem hiding this comment.
The only blocking thing here is addressing the AV_WKDMD/AV_WKDMC issue and adding a unit test containing these instructions in the core repo.
bdash
force-pushed
the
test_aarch64_apple_extensions
branch
from
July 14, 2026 20:20
2fff1d2 to
361c036
Compare
The following instructions are disassembled and lifted to intrinsics: * `genter #imm5` * `gexit` * `sdsb <domain>` * `wkdmc <Xd>, <Xs>` * `wkdmd <Xd>, <Xs>` * `at_as1elx <Xt>` * `mul53lo <Vd>.2d, <Vm>.2d` * `mul53hi <Vd>.2d, <Vm>.2d` Additionally, AMX instructions are disassembled but not yet lifted. Fixes #5933. These instructions are in encoding space that is unallocated by ARM. As we do not currently have any mechanism for architecture variants (#979) and these encodings are not currently used by any other vendor, I've opted to have `Arm64Architecture` decode these unconditionally. In hopes of a better future, I've structured the code such that the vendor-specific instruction handling is entirely separate from the primary disassembler / lifting logic. When support for architecture variants is added in the future, this logic can all be moved into an Apple-specific variant.
bdash
force-pushed
the
test_aarch64_apple_extensions
branch
from
July 15, 2026 00:29
361c036 to
da3ff7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following instructions are disassembled and lifted to intrinsics:
genter #imm5gexitsdsb <domain>wkdmc <Xd>, <Xs>wkdmd <Xd>, <Xs>at_as1elx <Xt>mul53lo <Vd>.2d, <Vm>.2dmul53hi <Vd>.2d, <Vm>.2dAdditionally, AMX instructions are disassembled but not yet lifted.
Fixes #5933.
These instructions are in encoding space that is unallocated by ARM. As we do not currently have any mechanism for architecture variants (#979) and these encodings are not currently used by any other vendor, I've opted to have
Arm64Architecturedecode these unconditionally.In hopes of a better future, I've structured the code such that the vendor-specific instruction handling is entirely separate from the primary disassembler / lifting logic. When support for architecture variants is added in the future, this logic can all be moved into an Apple-specific variant.