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

[RISCV] Inline Assembly: RVC constraint and N modifier #112561

Merged
merged 1 commit into from
Oct 18, 2024

Commits on Oct 16, 2024

  1. [RISCV] Inline Assembly: RVC constraint and N modifier

    This change implements support for the `cr` and `cf` register
    constraints (which allocate a RVC GPR or RVC FPR respectively), and the
    `N` modifier (which prints the raw encoding of a register rather than the
    name).
    
    The intention behind these additions is to make it easier to use inline
    assembly when assembling raw instructions that are not supported by the
    compiler, for instance when experimenting with new instructions or when
    supporting proprietary extensions outside the toolchain.
    
    These implement part of my proposal in riscv-non-isa/riscv-c-api-doc#92
    
    As part of the implementation, I felt there was not enough coverage of
    inline assembly and the "in X" floating-point extensions, so I have
    added more regression tests around these configurations.
    lenary committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    bbf0b88 View commit details
    Browse the repository at this point in the history