summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-08-12 15:51:47 +1000
committerAndrew Gerrand <adg@golang.org>2014-08-12 15:51:47 +1000
commitc75155140b2764eacf5b693a97ade52a6f641041 (patch)
treefbc0747e67fca1c5b5b430af20fdee88ad20267a
parent3a1394aca87af237f7fcd55096422f4143dc1b47 (diff)
downloadgo-c75155140b2764eacf5b693a97ade52a6f641041.tar.gz
[release-branch.go1.3] cmd/8g: fix build
??? CL 129720043 / 0449858880be cmd/8g: fix build Fixes issue 8510. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/129720043 ??? TBR=rsc CC=golang-codereviews https://codereview.appspot.com/129760043
-rw-r--r--src/cmd/8g/peep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/8g/peep.c b/src/cmd/8g/peep.c
index f902674ec..e2f3a003d 100644
--- a/src/cmd/8g/peep.c
+++ b/src/cmd/8g/peep.c
@@ -634,9 +634,9 @@ copyu(Prog *p, Adr *v, Adr *s)
static int
copyas(Adr *a, Adr *v)
{
- if(D_AL <= a->type && a->type <= D_R15B)
+ if(D_AL <= a->type && a->type <= D_BL)
fatal("use of byte register");
- if(D_AL <= v->type && v->type <= D_R15B)
+ if(D_AL <= v->type && v->type <= D_BL)
fatal("use of byte register");
if(a->type != v->type)