We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With this C file (test.c):
test.c
int foo(int *ptr) { int n; __asm__ __volatile__("l32i %0, %1" : "=r"(n) : "m"(*ptr)); return n; }
I get the following error:
$ llvm-build/bin/clang -c -o test.o -Os test.c --target=xtensa test.c:3:23: error: unexpected token __asm__ __volatile__("l32i %0, %1" : "=r"(n) : "m"(*ptr)); ^ <inline asm>:1:12: note: instantiated into assembly here l32i a2, 0(a2) ^ 1 error generated.
It looks like the inline assembly is incorrect. It it should have emitted l32i a2, a2, 0 instead of l32i a2, 0(a2).
l32i a2, a2, 0
l32i a2, 0(a2)
The text was updated successfully, but these errors were encountered:
@aykevl , thank you for your investigation of this issue, now it is fixed, please use xtensa_release_14.0.0 branch with latest changes
Sorry, something went wrong.
I can confirm that cherry-picking ee16f02 fixes this issue. Thank you! Feel free to close this issue.
No branches or pull requests
With this C file (
test.c
):I get the following error:
It looks like the inline assembly is incorrect. It it should have emitted
l32i a2, a2, 0
instead ofl32i a2, 0(a2)
.The text was updated successfully, but these errors were encountered: