2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (offset_in_range): Sign extend offset only if BFD64 is defined.
This commit is contained in:
parent
0cc7d26fe4
commit
fa289fb8df
|
@ -1,3 +1,8 @@
|
||||||
|
2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* config/tc-i386.c (offset_in_range): Sign extend offset only
|
||||||
|
if BFD64 is defined.
|
||||||
|
|
||||||
2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
|
2009-09-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-i386-intel.c (i386_intel_operand): Initialize
|
* config/tc-i386-intel.c (i386_intel_operand): Initialize
|
||||||
|
|
|
@ -1766,9 +1766,9 @@ offset_in_range (offsetT val, int size)
|
||||||
/* If BFD64, sign extend val for 32bit address mode. */
|
/* If BFD64, sign extend val for 32bit address mode. */
|
||||||
if (flag_code != CODE_64BIT
|
if (flag_code != CODE_64BIT
|
||||||
|| i.prefix[ADDR_PREFIX])
|
|| i.prefix[ADDR_PREFIX])
|
||||||
#endif
|
|
||||||
if ((val & ~(((addressT) 2 << 31) - 1)) == 0)
|
if ((val & ~(((addressT) 2 << 31) - 1)) == 0)
|
||||||
val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31);
|
val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((val & ~mask) != 0 && (val & ~mask) != ~mask)
|
if ((val & ~mask) != 0 && (val & ~mask) != ~mask)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue