Skip to content
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

Define inline asm consistently in intel syntax with -masm=intel #114

Open
pedrolamarao opened this issue Mar 24, 2022 · 1 comment
Open

Comments

@pedrolamarao
Copy link
Owner

One of the greatest pains in reading x86 assembler code is deducing what syntax is going on, AT&T or Intel. This is not a simple matter of style: the order of operands is reversed, making simple extended asm statements such as mov cr3, %0 ambiguous.

Recently released clang 14 allows defining the syntax for inline asm with -masm=syntax, like gcc does. Let's use that to normalize all inline asm to Intel syntax.

In case we return to assembler source files, .intel_syntax is already supported.

@pedrolamarao
Copy link
Owner Author

This obviously upgrades LLVM requirement to 14.

@pedrolamarao pedrolamarao added this to the M07 - true x86_64 target milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant