aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-06-15 07:59:44 +0200
committerJan Beulich <jbeulich@suse.com>2021-06-15 07:59:44 +0200
commita50187b2c6c28be79a32332e06a572cf08683de3 (patch)
tree0e7b6cce1e8a7723756955f6d62de2df3f0950c5 /sim/m32c
parent86f041462ec31a02efbcecdce8ee52ed2f340a68 (diff)
downloadbinutils-a50187b2c6c28be79a32332e06a572cf08683de3.zip
binutils-a50187b2c6c28be79a32332e06a572cf08683de3.tar.gz
binutils-a50187b2c6c28be79a32332e06a572cf08683de3.tar.bz2
x86: harmonize disp with imm handling
Certain disp values may trigger "... shortened to ..." warnings when equivalent imm ones don't. In some of the cases there are also differences (for non-64-bit code) between BFD64 and !BFD64 builds. The resulting encodings (i.e. use [or not] of the shorter disp8 / imm8 forms) are also different in some cases. Make this handling consistent. Note that using equivalent 16-bit mode displacements / immediates continues to expose entirely different behavior (see the disp-imm-16 testcase added by an earlier patch). This may want to be the subject of further changes, but it'll then quickly become obvious that e.g. keying use of extend_to_32bit_address() to non-64-bit mode isn't appropriate either: Once we allow wrapping operands, we would better do so consistently, in which case all of this would need to become dependent upon address or operand size instead of mode.
Diffstat (limited to 'sim/m32c')
0 files changed, 0 insertions, 0 deletions