[PATCH] x86: Remove 32-bit sign extension in offset_in_range

Jan Beulich jbeulich@suse.com
Tue Jul 14 12:51:34 GMT 2020


On 14.07.2020 14:43, H.J. Lu wrote:
> On Mon, Jul 13, 2020 at 11:12 PM Jan Beulich <jbeulich@suse.com> wrote:
>> Nevertheless, I've meanwhile thought of a (contrived) case that was
>> broken with the code present:
>>
>>         addr32 mov $0x89abcdef, %rax
>>
>> would have got the immediate sign-extended from 32 to 64 bits.
>>
> 
> I opened:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=26237
> 
> There are multiple issues.

Hmm, the former two lines there look correct to me, while the latter
two lines look to have been translated with a gas that didn't have
yesterday's change yet. IOW - I'm somewhat confused.

Jan


More information about the Binutils mailing list