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

Specifying ordering on atomic instructions #8

Open
markww opened this issue Mar 18, 2018 · 2 comments
Open

Specifying ordering on atomic instructions #8

markww opened this issue Mar 18, 2018 · 2 comments

Comments

@markww
Copy link

markww commented Mar 18, 2018

It would be helpful to have a bit in here describing specifying ordering for atomic instructions. I've looked around, and while I've determined that you can set the rl bit by adding a .rl on an atomic instruction, and the aq bit by adding a .aq, I can't figure out how one requests both. The specification seems to indicate that this is possible in section 7.2:

Setting both aq and rl bits on the LR instruction, and setting the aq bit on the SC instruction makes the LR/SC sequence sequentially consistent with respect to other sequentially consistent atomic
operations.

I've tried the forms lr.d.aq.rl, lr.d.sc, and lr.d.sq (my best guesses for notation) and the assembler complained.

@asb
Copy link
Contributor

asb commented Mar 18, 2018

This should definitely be clarified in the docs, but to address your immediate problem: you want .aqrl

@jim-wilson
Copy link
Collaborator

It isn't clear what question you are asking, and it doesn't appear related to this topic. Please open new issues for new questions, and please explain what problem you are trying to solve.

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

No branches or pull requests

3 participants