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: PR11867, bignum operations


On Mon, Aug 2, 2010 at 2:38 PM, Richard Sandiford
<rdsandiford@googlemail.com> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>> On Mon, Aug 2, 2010 at 6:18 AM, Alan Modra <amodra@gmail.com> wrote:
>>> gas only supports the unary '-', '~', and '!' operators for bignums,
>>> and all three were broken. ?'!' gave the logical inverse of the proper
>>> result, and the other two ignored any leading zeros.
>>>
>>> ? ? ? ?PR gas/11867
>>> ? ? ? ?* expr.c (operand <'-' and '~'>): Widen bignums.
>>> ? ? ? ?(operand <'!'>): Correct bignum result and convert to O_constant.
>>> ? ? ? ?* read.c (emit_expr): Don't assert on .byte bignum. ?Don't display
>>> ? ? ? ?bignum truncated warning for sign extended bignums.
>>>
>>
>> I checked in this testcase.
>
>> +Contents of section .data:
>> + 0000 00000000 fa448607 00000000 fdffffff ?.....D..........
>
> Doesn't this need a big-endian alternative?
>

I guess so.


-- 
H.J.


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