-
Notifications
You must be signed in to change notification settings - Fork 13.3k
inline asm jmp 'invalid operand for instruction' #48797
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
Comments
The will have been the upgrade to LLVM 6. |
Try again once the LLVM 6 fixes are in, but I can't see an obvious fix for this. |
Your example compile without errors on |
No I tried 2018-03-05 and it failed with same error. rust from command:
|
Yes sorry I was wrong, I mixed up open terminals. BTW this issue looks like: https://bugs.llvm.org/show_bug.cgi?id=36144. So you can't use |
Great, thanks for finding that! Fixes the issue. |
Rust nightly version
2018-02-11
broke some inline assembly in code that previously worked.Specifically, the jmp instruction on x86_64 doesn't work as it has before.
A minimum example to reproduce is that
now fails to compile with error:
error: <inline asm>:5:2: error: invalid operand for instruction jmp 1b
The code snippet above compiles with
rust-nightly-x86_64-unknown-linux-gnu nightly 2018-02-10
and earlier, but returns an error onnightly 2018-02-11
and beyond. I tried looking through the commits that happened that day but couldn't find the exact source of the issue.The text was updated successfully, but these errors were encountered: