]> Cypherpunks repositories - gostls13.git/commit
cmd/8l: fix data corruption for MULB SI,
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 26 Nov 2012 20:31:42 +0000 (21:31 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 26 Nov 2012 20:31:42 +0000 (21:31 +0100)
commit54023a94a6d7a282571ab18da7862a909d36d894
tree781c46f74e06a54d7196279355b8371f609cf2aa
parentaf375cde206ff131acf3e9afd126b36a8ff7b39e
cmd/8l: fix data corruption for MULB SI,

The 8l linker automatically inserts XCHG instructions
to support otherwise impossible byte registers
(only available on AX, BX, CX, DX).

Sometimes AX or DX is needed (for MUL and DIV) so
we need to avoid clobbering them.

R=golang-dev, dave, iant, iant, rsc
CC=golang-dev
https://golang.org/cl/6846057
src/cmd/6l/span.c
src/cmd/8l/span.c