-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Unknown inline asm constraints cause LLVM assertion failures #16337
Comments
As you can see (and as implied by the feature gate) Inline |
I didn't expect 100% bug-free inline asm, but I was told to report all LLVM assertion failures, so that's what I did. And my experience with clang was always that LLVM has no/little docs but it doesn't matter because you can just use the GCC docs and everything will work. Apparently just clang emulates gcc and not LLVM, so this doesn't apply to rust. Sorry about that. But are there even any LLVM docs about inline asm? Google always leads me to the GCC docs. |
In GCC constraints, |
@main-- sorry for confusion, my comment was just addressing your question "But shouldn't g work?".
I don't think there are any. AIUI, the only docs is the source, but I don't personally know where in LLVM it is implemented (it's annoyed me in the past too). |
The inline asm docs explicitly link to the LLVM docs, and say that we use something "like GCC" but not the same as gcc. |
This is caused by any constraints that
rustc
can't handle (even something obviously invalid likeö
). But shouldn'tg
work?The text was updated successfully, but these errors were encountered: