-
Notifications
You must be signed in to change notification settings - Fork 78
Add missing register class conversion for inline asm #232
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 missing register class conversion for inline asm #232
Conversation
dd56ca2
to
d532473
Compare
d532473
to
0301d4a
Compare
You'll probably want to run the tests in src/test/assembly/asm to check that the constraints for all targets are correct. |
0301d4a
to
26d58e2
Compare
src/base.rs
Outdated
context.add_command_line_option(arg); | ||
if !arg.starts_with("--x86-asm-syntax=") { | ||
context.add_command_line_option(arg); | ||
} |
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 would break anyone that needs a specific assembly syntax in rustc's output, right?
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.
We're currently doing some tests.
This option is an LLVM option; for gcc it should be -masm=intel
. I'm not sure what's the plan for supporting setting options for the different backends, but cg_gcc currently uses llvm-args
to set gcc options. Since this option is to send arguments to the backend, I'm not sure it makes sense to do the mapping between the LLVM options and GCC options.
I guess we would need to discuss this somewhere to agree on the correct solution, though.
636346a
to
ffd1df7
Compare
51b6ba1
to
68e0c6e
Compare
68e0c6e
to
f150ab3
Compare
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.
Thanks a lot!
Part of #60.