diff options
author | Russ Cox <rsc@golang.org> | 2013-08-12 13:42:04 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-08-12 13:42:04 -0400 |
commit | 61b8c0619148b2e887c34ee6ece928c3d9ac6cfa (patch) | |
tree | 59aa1be33d695d425e1a401378d8e555cebd0efc /src/cmd | |
parent | ef59adde2e1927aa19d60ae60121fbd02645b580 (diff) | |
download | go-61b8c0619148b2e887c34ee6ece928c3d9ac6cfa.tar.gz |
cmd/5l: fix encoding of new MOVB, MOVH instructions
They are just like MOVW and should be setting only
two register fields, not three.
R=ken2
CC=golang-dev, remyoudompheng
https://codereview.appspot.com/12781043
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/5l/asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/5l/asm.c b/src/cmd/5l/asm.c index 28bb40682..774332b46 100644 --- a/src/cmd/5l/asm.c +++ b/src/cmd/5l/asm.c @@ -798,7 +798,7 @@ if(debug['G']) print("%ux: %s: arm %d\n", (uint32)(p->pc), p->from.sym->name, p- r = p->reg; if(p->to.type == D_NONE) rt = 0; - if(p->as == AMOVW || p->as == AMVN) + if(p->as == AMOVB || p->as == AMOVH || p->as == AMOVW || p->as == AMVN) r = 0; else if(r == NREG) |