You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/asm: MOVL $x-8(SP) and LEAL x-8(SP) are different #4997
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.
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
Activity
rsc commentedon Jul 30, 2013
Comment 1:
Labels changed: added go1.2.
rsc commentedon Sep 6, 2013
Comment 2:
Labels changed: added go1.3maybe, removed go1.2.
rsc commentedon Dec 4, 2013
Comment 3:
Labels changed: added release-none, removed go1.3maybe.
rsc commentedon Dec 4, 2013
Comment 4:
Labels changed: added repo-main.
rsc commentedon Jun 8, 2015
Need to check if this is still true after all the shakeup.
[-]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[/+]