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

[M68k] Add support for MOVEQ instruction #88542

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Commits on Apr 12, 2024

  1. [M68k] Add support for MOVEQ instruction

    Add support for the moveq instruction, which is both faster and smaller
    (1/2 to 1/3 the size) than a move with immediate to register.
    
    This change introduces the instruction, along with a set of
    pseudoinstructions to handle immediate moves to a register that is
    lowered post-RA.
    
    Pseudos are used as moveq can only write to the full register, which makes
    matching i8 and i16 immediate loads difficult in tablegen. Furthermore,
    selecting moveq before RA constrains that immediate to be moved into a data
    register, which may not be optimal.
    
    The bulk of this change are fixes to existing tests, which cover the new
    functionality sufficiently.
    n8pjl committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    130fb51 View commit details
    Browse the repository at this point in the history