qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 07/15] target-ppc: implement branch-less divw


From: Nikunj A Dadhania
Subject: Re: [Qemu-devel] [PATCH v3 07/15] target-ppc: implement branch-less divw[o][.]
Date: Tue, 26 Jul 2016 07:22:18 +0530
User-agent: Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu)

Richard Henderson <address@hidden> writes:

> On 07/25/2016 10:50 PM, Nikunj A Dadhania wrote:
>>      if (compute_ov) {
>> -        tcg_gen_movi_tl(cpu_ov, 1);
>> -        tcg_gen_movi_tl(cpu_so, 1);
>> +        tcg_gen_extu_i32_tl(cpu_ov, t2);
>> +        tcg_gen_extu_i32_tl(cpu_so, t2);
>>      }
>
> This should be
>
>    tcg_gen_extu_i32_tl(cpu_ov, t2);
>    tcg_gen_or_tl(cpu_so, cpu_so, cpu_ov);
>
> I.e. the summary overflow accumulates.

Sure, i missed that bit. In the previous case it was always setting it
to 1, because an overflow had occurred. And not changing it otherwise. 

Regards
Nikunj




reply via email to

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