1
0
mirror of https://github.com/golang/go synced 2024-11-23 22:50:05 -07:00

[dev.power64] 9g: fix width check and width calculation for OADDR

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/174970043
This commit is contained in:
Austin Clements 2014-11-12 14:16:49 -05:00
parent 7739533f61
commit c1e8c57c3d

View File

@ -1046,6 +1046,8 @@ gins(int as, Node *f, Node *t)
break;
case AMOVD:
case AMOVDU:
if(af.type == D_CONST)
break;
w = 8;
break;
}
@ -1275,7 +1277,6 @@ naddr(Node *n, Addr *a, int canemitcode)
case OADDR:
naddr(n->left, a, canemitcode);
a->etype = tptr;
a->width = widthptr;
switch(a->type) {
case D_OREG:
a->type = D_CONST;