Process 64-bit imm/disp only for 64-bit BFD
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Dec 2015 22:03:43 +0000 (14:03 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Dec 2015 22:07:36 +0000 (14:07 -0800)
commita28def75916fb4fa8280404f8c023adc0773162d
tree09f0d7747821f48fed4d4b5c4dd936d7c7ba2fb6
parent5f2dfcfdb5def494d13bff72275f6ff75fe75f40
Process 64-bit imm/disp only for 64-bit BFD

We only need to store 32-bit immediate in 64-bit and optimize 64-bit
displacement to 32-bit only for 64-bit BFD.

* config/tc-i386.c (optimize_imm): Store 32-bit immediate in
64-bit only for 64-bit BFD
(optimize_disp): Optimize 64-bit displacement to 32-bit only
for 64-bit BFD.
gas/ChangeLog
gas/config/tc-i386.c