qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 2/2] tcg-s390: New TCG Target.


From: Richard Henderson
Subject: [Qemu-devel] Re: [PATCH 2/2] tcg-s390: New TCG Target.
Date: Fri, 25 Jun 2010 09:45:01 -0700
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 Thunderbird/3.0.5

On 06/17/2010 12:40 PM, Aurelien Jarno wrote:
>> +    /* Handle the modifiers.  */
>> +    if (ct & TCG_CT_CONST_NEG) {
>> +        val = -val;
>> +    }
> 
> This "modifier" is only used by subi. Wouldn't it be better to use a
> TCG_CT_CONST_SUBI instead?

Not really.  This negation needs to happen *before* the sign-extension
of TCG_CT_CONST_32 in order to get correct results.

While I could do a CONST_SUBI, I would have to handle CONST_32 again
within the CONST_SUBI clause and I would not consider that better.


r~



reply via email to

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