diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-09-03 17:38:38 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-09-03 17:38:38 +0000 |
commit | 13f864aed86358efd5504098e61184b06054d43c (patch) | |
tree | af424dd9f13d93e20994c44fe1b28d8f0edd4a20 /gas/config | |
parent | 18464d4d31ffc294347280430c1302e576d98b47 (diff) | |
download | gdb-13f864aed86358efd5504098e61184b06054d43c.zip gdb-13f864aed86358efd5504098e61184b06054d43c.tar.gz gdb-13f864aed86358efd5504098e61184b06054d43c.tar.bz2 |
Check flag_code instead of use_rela_relocations for 64bit.
gas/
2010-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11974
* config/tc-i386.c (i386_finalize_immediate): Check flag_code
instead of use_rela_relocations for 64bit.
gas/testsuite/
2010-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11974
* gas/i386/immed64.s: Add more movabs tests.
* gas/i386/immed64.d: Updated.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 8533142..9488ac9 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -6626,8 +6626,8 @@ i386_finalize_immediate (segT exp_seg ATTRIBUTE_UNUSED, expressionS *exp, { /* Size it properly later. */ i.types[this_operand].bitfield.imm64 = 1; - /* If BFD64, sign extend val. */ - if (!use_rela_relocations + /* If not 64bit, sign extend val. */ + if (flag_code != CODE_64BIT && (exp->X_add_number & ~(((addressT) 2 << 31) - 1)) == 0) exp->X_add_number = (exp->X_add_number ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31); |