Skip to content

missing ARM addressing modes for LDRH #208

Description

@sehugg

The following ARM addressing modes work for LDR (and LDRB):

    ldr    r3, [r2, #1]
    ldr    r3, [r2, #-1]
    ldr    r3, [r2, r1]
    ldr    r3, [r2, -r1]
    ldr    r3, [r2, #1]!
    ldr    r3, [r2, #-1]!
    ldr    r3, [r2, r1]!
    ldr    r3, [r2, -r1]!
    ldr    r3, [r2], #1
    ldr    r3, [r2], #-1
    ldr    r3, [r2], r1
    ldr    r3, [r2], -r1

I believe LDRH should support all of the above, but currently only the following work:

    ldrh    r3, [r2, #1]
    ldrh    r3, [r2, #-1]
    ldrh    r3, [r2, r1]
    ldrh    r3, [r2], #1
    ldrh    r3, [r2], #-1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions