Using the dedicated manifest constant is more descriptive.
2012-07-24 Jan Beulich <jbeulich@suse.com> * config/tc-i386-intel.c (i386_intel_simplify_register): Replace literal 4 by corresponding ESP_REG_NUM.
This commit is contained in:
parent
ad44ee3a67
commit
8280f32685
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-07-24 Jan Beulich <jbeulich@suse.com>
|
||||||
|
|
||||||
|
* config/tc-i386-intel.c (i386_intel_simplify_register):
|
||||||
|
Replace literal 4 by corresponding ESP_REG_NUM.
|
||||||
|
|
||||||
2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
|
2012-07-24 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
Jie Zhang <jzhang918@gmail.com>
|
Jie Zhang <jzhang918@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -285,7 +285,7 @@ i386_intel_simplify_register (expressionS *e)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* esp is invalid as index */
|
/* esp is invalid as index */
|
||||||
intel_state.index = i386_regtab + REGNAM_EAX + 4;
|
intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
|
||||||
}
|
}
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
@ -440,7 +440,7 @@ static int i386_intel_simplify (expressionS *e)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* esp is invalid as index */
|
/* esp is invalid as index */
|
||||||
intel_state.index = i386_regtab + REGNAM_EAX + 4;
|
intel_state.index = i386_regtab + REGNAM_EAX + ESP_REG_NUM;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue