-
Notifications
You must be signed in to change notification settings - Fork 287
add __breakpoint #558
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 __breakpoint #558
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modulo the documentation nitpicks this LGTM.
coresimd/arm/armclang.rs
Outdated
/// | ||
/// `val` is a compile-time constant integer whose range is: | ||
/// | ||
/// - `0...65535` if you are compiling source as A32 code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be removed since it currently won't work and can be added later once it works in a backwards compatible way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, I see you also updated the Note below. So I think this is fine. I'll merge once CI is green. Let me know if there are any spurious CI failures.
This is failing on
We might need a cfg on target arch and use a different instruction there. |
If I'm not wrong is |
Should this macro perhaps panic if any of the upper bits above |
Interesting. Thinking more about it: Could we omit the assert! and document the behavior of |
this is an ARM compiler specific intrinsic which can be used to implement CMSIS's __BKPT intrinsic
@alexcrichton it appears that it is not possible right now as @japaric mentioned. I've taken over this PR and just document that the only accepted values of |
this is an ARM compiler specific intrinsic which can be used to implement
CMSIS's __BKPT intrinsic
r? @gnzlbg