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