Skip to content

cmd/asm: MOVL $x-8(SP) and LEAL x-8(SP) are different #4997

Open

Description

@rsc
MOVL $x-8(SP), AX assembles to raw LEAL -8(SP), AX.
LEAL x-8(SP), AX assembles to raw LEAL (framesize-8)(SP), AX.
It's a bit confusing that they have different interpretations of x-8(SP).

Same for MOVQ on 6a.

Can wait until after Go 1 because I think I'm the only one who ever uses that form
instead of writing LEAL/LEAQ.

Activity

  1. rsc commented on Jul 30, 2013

    @rsc
    ContributorAuthor

    Comment 1:

    Labels changed: added go1.2.

  2. rsc commented on Sep 6, 2013

    @rsc
    ContributorAuthor

    Comment 2:

    Not important for Go 1.2.

    Labels changed: added go1.3maybe, removed go1.2.

  3. rsc commented on Dec 4, 2013

    @rsc
    ContributorAuthor

    Comment 3:

    Labels changed: added release-none, removed go1.3maybe.

  4. rsc commented on Dec 4, 2013

    @rsc
    ContributorAuthor

    Comment 4:

    Labels changed: added repo-main.

  5. added this to the Unplanned milestone on Apr 10, 2015
  6. rsc commented on Jun 8, 2015

    @rsc
    ContributorAuthor

    Need to check if this is still true after all the shakeup.

  7. changed the title [-]cmd/6a, cmd/8a: MOVL $x-8(SP) and LEAL x-8(SP) are different[/-] [+]cmd/asm: MOVL $x-8(SP) and LEAL x-8(SP) are different[/+] on Jun 8, 2015
  8. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Sep 26, 2016
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

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions