On 11/27/2016 09:53 AM, Laurent Vivier wrote:
>> > +                TCGv t0 = tcg_temp_new();
>> > +                tcg_gen_sari_i32(QREG_CC_V, reg, bits - 1);
>> > +                tcg_gen_sari_i32(t0, t0, bits - count);
> t0 is used unitialized, I think we should have here:
> 
>                 tcg_gen_sari_i32(t0, reg, bits - count - 1);
> 
> moreover we must use "bits - count - 1" to use also the current most
> significant bit to compute V flag.
> 

Yep.


r~

Reply via email to