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

Assembly directives are not clear about which ones are target-specific #1526

Open
ehuss opened this issue Jul 12, 2024 · 1 comment
Open
Assignees
Labels
A-asm Area: inline assembly

Comments

@ehuss
Copy link
Contributor

ehuss commented Jul 12, 2024

The list of "guaranteed directives" at https://github.com/rust-lang/reference/blob/dad82335e200081ea498b0fb454b9ed3343f8cd5/src/inline-assembly.md#directives-support seems unclear to me which ones are target-specific. In the sections below, there are several target-specific directives. However, looking over the current list of non-specific ones, I see several that are also target-specific.

Some examples:

  • .alt_entry — Seems to be LLVM only (!?), and Mach-O only?
  • .insn — Seems to be i386 and RISC-V, but not ARM
  • .inst — Seems to be ARM-only.
    ...etc.

I think it would be good to carefully review the list, and determine which ones are target-specific. We should also figure out what to do about things that seem to differ between LLVM and GNU.

@ehuss ehuss added the A-asm Area: inline assembly label Jul 12, 2024
@chorman0773 chorman0773 self-assigned this Jul 13, 2024
@chorman0773
Copy link
Contributor

chorman0773 commented Jul 13, 2024

I will take care of this research.

T-lang should probably at least have some eyes on it, since the directive list was effectively stabilized.

Procedurally, should this have the S-waiting-on-reviewer label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-asm Area: inline assembly
Projects
None yet
Development

No branches or pull requests

2 participants