]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/8g: fix build
authorShenghou Ma <minux@golang.org>
Mon, 11 Aug 2014 21:11:31 +0000 (17:11 -0400)
committerShenghou Ma <minux@golang.org>
Mon, 11 Aug 2014 21:11:31 +0000 (17:11 -0400)
Fixes #8510.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/129720043

src/cmd/8g/peep.c

index 35129a7c46bf0eba1bbb3d36c806ffa3918d4c08..91a91d20db41b2b33b72e0e485a9bc62d2c12ae0 100644 (file)
@@ -636,9 +636,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)