Commit 40bcbb30 authored by Russ Cox's avatar Russ Cox

fix 386 build

R=ken
OCL=34164
CL=34164
parent bdec330c
...@@ -1289,7 +1289,7 @@ gmove(Node *f, Node *t) ...@@ -1289,7 +1289,7 @@ gmove(Node *f, Node *t)
if(t->op == OREGISTER) if(t->op == OREGISTER)
goto hardmem; goto hardmem;
nodreg(&r1, types[ft], D_F0); nodreg(&r1, types[ft], D_F0);
if(ft == TFLOAT32) if(ft == TFLOAT32 && f->op != OREGISTER)
gins(AFMOVF, f, &r1); gins(AFMOVF, f, &r1);
else else
gins(AFMOVD, f, &r1); gins(AFMOVD, f, &r1);
...@@ -1630,6 +1630,9 @@ gins(int as, Node *f, Node *t) ...@@ -1630,6 +1630,9 @@ gins(int as, Node *f, Node *t)
{ {
Prog *p; Prog *p;
if(as == AFMOVF && f && f->op == OREGISTER && t && t->op == OREGISTER)
fatal("gins MOVF reg, reg");
switch(as) { switch(as) {
case AMOVB: case AMOVB:
case AMOVW: case AMOVW:
......
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