This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible gas regression


2010/9/6 Alan Modra <amodra@gmail.com>:
> On Sun, Sep 05, 2010 at 09:19:05PM -0400, NightStrike wrote:
>> On Sun, Sep 5, 2010 at 8:18 PM, Alan Modra <amodra@gmail.com> wrote:
>> > On Sun, Sep 05, 2010 at 02:21:57PM -0400, NightStrike wrote:
>> >> Using H.J's suggested fix of "andq $-1, %r8". ?Thanks, HJ!
>> >
>> > What is the point of and'ing with a mask of all ones?
>>
>> I believe the intent was to zero out a certain section of a register.
>
> Clearly so. ?I was pointing out what seems to be a bug.
> "mov %r8d,%r8d" perhaps?
>
> --
> Alan Modra
> Australia Development Lab, IBM
>

Yeah, this is what I intended. I wasn't aware that the anq uses imm32
(sign-extended) here. The code should zero upper 32-bits of register.
Good that this check was added to gas, so we found a latent issue here.

Thanks,
Kai

-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]