Skip to content

Commit

Permalink
remove redundant MOV
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Aug 3, 2011
1 parent fa25f90 commit d1110ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/cod4.c
Expand Up @@ -654,7 +654,7 @@ code *cdeq(elem *e,regm_t *pretregs)
for (; TRUE; sz -= REGSIZE)
{
// Do not generate mov from register onto itself
if (regvar && reg == (cs.Irm & 7))
if (regvar && reg == ((cs.Irm & 7) | (cs.Irex & REX_B ? 8 : 0)))
break;
if (sz == 2) // if 16 bit operand
cs.Iflags |= CFopsize;
Expand Down

0 comments on commit d1110ff

Please sign in to comment.