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


"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?

Richard


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