• Michael Munday's avatar
    cmd: fix the order that s390x operands are printed in · db6f3bbc
    Michael Munday authored
    The assembler reordered the operands of some instructions to put the
    first operand into From3. Unfortunately this meant that when the
    instructions were printed the operands were in a different order than
    the assembler would expect as input. For example, 'MVC $8, (R1), (R2)'
    would be printed as 'MVC (R1), $8, (R2)'.
    
    Originally this was done to ensure that From contained the source
    memory operand. The current compiler no longer requires this and so
    this CL simply makes all instructions use the standard order for
    operands: From, Reg, From3 and finally To.
    
    Fixes #18295
    
    Change-Id: Ib2b5ec29c647ca7a995eb03dc78f82d99618b092
    Reviewed-on: https://go-review.googlesource.com/40299
    Run-TryBot: Michael Munday <munday@ca.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    db6f3bbc
s390x.go 1.66 KB