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

Add exchange instructions to x86-64Assembler #261

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

khagankhan
Copy link
Contributor

Adds support for exchange instructions in x86-64 that can be used for atomic stores and other purposes.

@khagankhan
Copy link
Contributor Author

Do we need xchgq_m_r and xchgd_m_r or can we (I think we can) simply use asm.d.xchg_m_r and asm.q.xchg_m_r?

@titzer
Copy link
Owner

titzer commented Jul 5, 2024

Do we need xchgq_m_r and xchgd_m_r or can we (I think we can) simply use asm.d.xchg_m_r and asm.q.xchg_m_r?

I think I prefer the explicit suffixes here.

@titzer titzer merged commit e0eb253 into titzer:master Jul 5, 2024
7 checks passed
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