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

Re: mips64 assembler

On 09/17/2010 07:16 AM, Camm Maguire wrote:
Greetings!  Is there anyway to load a known 64bit number into a given
register in two instructions?

Not in the general case where the value of the 64-bit number is unconstrained...

Said number is guaranteed to be within
32bits of the current value of another register.

In other words, you want to add an arbitrary 32-bit constant to the value in a register. You would need three instructions to do this. Two to generate the 32-bit constant and another to do the addition.

David Daney.

Reply to: