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: assembler parse 64-bit immediate


Thanks a lot, I didn't define the macro BFD64, so it can't support a
64-bit immediate, now it's fixed.

On Tue, Jan 11, 2011 at 10:19 AM, Alan Modra <amodra@gmail.com> wrote:
> On Fri, Jan 07, 2011 at 12:15:19PM +0800, rain z wrote:
>> hi, guys:
>> ? ? ?I got a problem when I was implementing a pseudo assembler
>> instruction on ARM-like architecture.
>> The pseudo instruction is: "dmovl rd, #0xffffffffffffffff" ?/* move a
>> 64-bit immediate to rd register */.
>> ?I use the function my_get_expression( ) which is in
>> gas/config/tc-arm.c to parse the 64-bit immediate, but it can't give
>> me the right number I want. It seems to me that the assembler can't
>> parse a 64-bit immediate, maybe I was wrong.
>> should I implement a special function to parse a 64-bit immediate ?
>
> You should look at places that handle expressions with X_op == O_big.
>
> --
> Alan Modra
> Australia Development Lab, IBM
>



-- 
Rain Z


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