aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-07-10 16:54:01 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-07-10 16:54:01 +0000
commit28a9d8f5e472baeeffd915c1cb43be4dac1d979c (patch)
tree266cc05d9b96ed0d1c20d4c0436a4c0b3965890e /gas/config
parentf010abaa2b11934478d92c275c7bbc8bf925b46a (diff)
downloadgdb-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.c5
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;
}