diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-07-10 16:54:01 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-07-10 16:54:01 +0000 |
commit | 28a9d8f5e472baeeffd915c1cb43be4dac1d979c (patch) | |
tree | 266cc05d9b96ed0d1c20d4c0436a4c0b3965890e /gas/config | |
parent | f010abaa2b11934478d92c275c7bbc8bf925b46a (diff) | |
download | gdb-28a9d8f5e472baeeffd915c1cb43be4dac1d979c.zip gdb-28a9d8f5e472baeeffd915c1cb43be4dac1d979c.tar.gz gdb-28a9d8f5e472baeeffd915c1cb43be4dac1d979c.tar.bz2 |
gas/
2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (optimize_disp): Optimize signed 32bit
displacements.
testsuite/gas/
2005-07-10 H.J. Lu <hongjiu.lu@intel.com>
* i386/x86_64.s: Add absolute siged 32bit addressing tests for
mov.
* i386/x86_64.d: Updated.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 4b57194..f5c42df 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2108,7 +2108,10 @@ optimize_disp () else if (flag_code == CODE_64BIT) { if (fits_in_signed_long (disp)) - i.types[op] |= Disp32S; + { + i.types[op] &= ~Disp64; + i.types[op] |= Disp32S; + } if (fits_in_unsigned_long (disp)) i.types[op] |= Disp32; } |