Add support for Apple's vendor-specific aarch64 instructions#8316
Open
bdash wants to merge 1 commit into
Open
Conversation
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.
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.