Commit c1e8c57c authored by Austin Clements's avatar Austin Clements

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

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/174970043
parent 7739533f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment