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: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v3 07/15] target-ppc: implement branch-less divw[o][.]
Date: Tue, 26 Jul 2016 05:47:32 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

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.


r~



reply via email to

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