bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a bug?


From: Alan Modra
Subject: Re: Is this a bug?
Date: Mon, 29 Aug 2005 21:48:40 +0930
User-agent: Mutt/1.4i

On Mon, Aug 29, 2005 at 01:03:01PM +0200, Gonzalo Jimenez Sanchez wrote:
> regs.s:445: Error: operand out of range (0x0000aa39 is not between
> 0xffff8000 and 0x00007fff)
> 
> line 445 in that file is: li      r3,0xAA39

Error in your source.  Write "li r3,0xffffaa39".  (Which is the value
you will find in r3 after executing this insn.)

> init8260.s:1067: Error: operand out of range (0x0000ffff is not between
> 0xffff8000 and 0x00007fff)
> 
> line 1067 in that file is: addi    r3,0,0xFFFF

Another error.  "addi r3,0,0xffffffff" (or more clearly
"li r3,0xffffffff").

> In 8260_int.s you can find in line 385:    addi     r2,0,0xFFFD      # Load
> the mask - 0xFFFFFFFD

Similarly.

> My change:
> { "li",            OP(14),    DRA_MASK,       PPCCOM,         { RT, SISIGNOPT 
> } },
> 
> { "addi",    OP(14),  OP_MASK,        PPCCOM,         { RT, RA0, SISIGNOPT
> } },

No, this is wrong.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]