Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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.