Skip to content
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

Feature Request BTR/BTS #928

Open
kraemv opened this issue Oct 15, 2024 · 3 comments
Open

Feature Request BTR/BTS #928

kraemv opened this issue Oct 15, 2024 · 3 comments

Comments

@kraemv
Copy link

kraemv commented Oct 15, 2024

Hello everyone,

could we add the BTR and BTS instruction to the x86 intrinsics? These instructions perform a BIT test and reset/set.
https://www.felixcloutier.com/x86/btr
https://www.felixcloutier.com/x86/bts
These instructions are useful for clearing/setting specific bits without using AND/OR masks.

Cheers,
Vincent

@vbgl
Copy link
Member

vbgl commented Oct 16, 2024

Welcome. Thanks for your interest in Jasmin.

The documentation for these instructions imply that their behavior is not the same when they target a memory location or a register. I guess that the memory case would be hard to add to jasmin. Would you be satisfied if these instructions were only allowed on registers in jasmin programs?

@vbgl
Copy link
Member

vbgl commented Oct 16, 2024

See #932

@kraemv
Copy link
Author

kraemv commented Oct 17, 2024

Yes, registers are fully sufficient for me! Thank you, for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants