Skip to content

Add awareness of some Armv8.1-M branch instructions #73

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kesyog
Copy link
Contributor

@kesyog kesyog commented Jun 6, 2025

Armv8.1-M adds some new direct branch instructions. This commit adds support for parsing WLS, WLSTP, LE, and LETP instructions.

The branch future (BF) family of instructions is not handled by this commit.

Armv8.1-M adds some new direct branch instructions. This commit adds
support for parsing WLS, WLSTP, LE, and LETP instructions.

The branch future (BF) family of instructions is not handled by this
commit.
@kesyog
Copy link
Contributor Author

kesyog commented Jun 6, 2025

I've tested this change locally using an ETM instruction trace stream that contains these instructions. However, I'm not sure what's the best way to add tests to the repository for inst_Thumb_is_direct_branch_link and inst_Thumb_branch_destination.

@kesyog
Copy link
Contributor Author

kesyog commented Jun 11, 2025

@mikel-armbb I'd love to get your review and thoughts on testing

@mikel-armbb
Copy link
Contributor

HI,

This seems a reasonable patch - however is it possible for you to provide a test in "snapshot" format that demonstrates the correct behaviour. See the "snapshots" directory for examples of other tests - the snapshot format is documented in the Docs area

Thanks

Mike

@kesyog
Copy link
Contributor Author

kesyog commented Jun 24, 2025

Thanks, it'll take me some time to figure out how to generate non-proprietary test data in the right format, but I'll look into it.

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.

2 participants