lightning
[Top][All Lists]
Advanced

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

Re: [Lightning] About 32 and 64 bits registers


From: Paolo Bonzini
Subject: Re: [Lightning] About 32 and 64 bits registers
Date: Tue, 24 Aug 2010 09:02:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 08/24/2010 05:18 AM, Paulo César Pereira de Andrade wrote:

   Back to the issue of 32/64 bits registers, I think the proper solution
probably would be more like:

   jit_movi_i vs jit_movi_l vs jit_movi_ui vs jit_movi_ul

   Now that the _{u,}l versions exist, maybe it would not be wise to
remove them, but just make them an alias, but, the 'i' should be
understood as (i)mmediate, and the ui as (u)nsigned (i)mmediate.
Same thing would apply to branches, e.g. jit_bltr_i would mean
jit_branch_if_less_than(label, register, immediate)

No, there is a misunderstanding.  jit_bltr_i means

Branch
if Less Than Register
operand size = Integer

In general all operations are
: jit_XXXr_TT register <- register OP register, signed type TT
: jit_XXXi_TT register <- register OP immediate, signed type TT
: jit_XXXr_uTT register <- register OP register, unsigned type TT
: jit_XXXi_uTT register <- register OP immediate, unsigned type TT

Your other patches are fine and I'll merge them soon.

Paolo



reply via email to

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