-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[ARM] Remove most post-decoding instruction adjustments #156540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
s-barannikov
wants to merge
1
commit into
main
Choose a base branch
from
users/s.barannikov/decoder-operands-7-arm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+152
−59
Conversation
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
This was referenced Sep 2, 2025
8b97be9
to
8e6e8dd
Compare
46fc93b
to
ee67c36
Compare
8e6e8dd
to
a4b0131
Compare
ee67c36
to
9709854
Compare
a4b0131
to
611d87c
Compare
9709854
to
aa97c88
Compare
611d87c
to
6029b96
Compare
aa97c88
to
f31a7b8
Compare
408cfbc
to
b06dce1
Compare
f31a7b8
to
5f3f11d
Compare
b06dce1
to
b45bd86
Compare
b45bd86
to
204f13a
Compare
204f13a
to
67bdfe0
Compare
s-barannikov
added a commit
that referenced
this pull request
Sep 19, 2025
This change adds basic `MCInst` verification (checks the number of operands) and fixes detected bugs. * `RFE*` instructions have only one operand, but `DecodeRFEInstruction` added two. * `DecodeMVEModImmInstruction` and `DecodeMVEVCMP` added a `vpred` operand, but this is what `AddThumbPredicate` normally does. This resulted in an extra `vpred` operand. * `DecodeMVEVADCInstruction` added an extra immediate operand. * `getARMInstruction` added a `pred` operand to instructions that don't have one (via `DecodePredicateOperand`). * `AddThumb1SBit` appended an extra register operand to instructions that don't modify CPSR (such as `tBL`). * Instructions in `NEONDup` namespace have `pred` operand that the generated code successfully decodes. The operand was added once again by `getARMInstruction`/`getThumbInstruction` via `AddThumbPredicate`. Functional changes extracted from #156540.
ea21c47
to
23f77e4
Compare
✅ With the latest revision this PR passed the C/C++ code formatter. |
0aa1f38
to
9853907
Compare
s-barannikov
added a commit
that referenced
this pull request
Sep 23, 2025
The operand can be decoded automatically, without the need for post-decoding instruction modification. Part of #156540.
s-barannikov
added a commit
that referenced
this pull request
Oct 4, 2025
Make the operands auto-decodable by adding `bits<0>` fields to instructions. Now we try to decode a vpred_n/vpred_r operand only if the instruction being decoded has one. We still need post-decoding pass to check/advance VPT state. Part of #156540.
9853907
to
c32bc56
Compare
c32bc56
to
91d92fe
Compare
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.
No description provided.