]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Remove 32-bit sign extension in offset_in_range
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jul 2020 17:18:39 +0000 (10:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Jul 2020 14:15:33 +0000 (07:15 -0700)
commited0e8aece0dc81f54e2593abac7eba3379705a8e
treeefa38cd8c6ec464484689fc237662eec40b3175c
parent2952e9275cf588c238f96348c7a63a5a7416d617
x86: Remove 32-bit sign extension in offset_in_range

When encoding a 32-bit offset, there is no need to sign-extend it to 64
bits since only the lower 32 bits are used.

PR gas/26237
* config/tc-i386.c (offset_in_range): Remove 32-bit sign
extension.

(cherry picked from commit 7a705315596cf5effe01de8c3ac2535687c5663d)
gas/ChangeLog
gas/config/tc-i386.c