Skip to content
Discussion options

You must be logged in to vote

is this dependent on the instruction scheduling mechanism (in-order, out-of-order)

No, I'm only referring to architecturally executed instructions. If the processor is capable of speculative OOO execution, the processor is still responsible for figuring out how to make the LR/SC forward-progress guarantee work correctly, with respect to the architecturally executed instructions.

So, we can analyze this loop by only considering the four instructions LR/BNE/SC/BNEZ; we don't need to worry about anything after the loop-closing backwards branch. We can analyze its forward progress by making sure that we're guaranteed to exit the loop. In the case the BNE in the middle is taken, we exit the …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@akaushikyu
Comment options

Answer selected by akaushikyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants