Skip to content

Commit

Permalink
another byte reg problem
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Feb 2, 2011
1 parent 822754a commit 45d8f4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/cod4.c
Expand Up @@ -1126,6 +1126,8 @@ code *cdaddass(elem *e,regm_t *pretregs)
ce = allocreg(&retregs,&reg,tyml);
cs.Iop = 0x8B ^ byte ^ reverse;
code_newreg(&cs, reg);
if (I64 && byte && reg >= 4)
cs.Irex |= REX_W;
ce = gen(ce,&cs); // MOV reg,EA
}
}
Expand Down

0 comments on commit 45d8f4f

Please sign in to comment.