qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/8] target/ppc: Optimize emulation of vsl and v


From: Stefan Brankovic
Subject: Re: [Qemu-devel] [PATCH 2/8] target/ppc: Optimize emulation of vsl and vsr instructions
Date: Mon, 17 Jun 2019 13:36:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0


On 6.6.19. 19:03, Richard Henderson wrote:
On 6/6/19 5:15 AM, Stefan Brankovic wrote:
+    tcg_gen_subi_i64(tmp, sh, 64);
+    tcg_gen_neg_i64(tmp, tmp);
Better as

     tcg_gen_subfi_i64(tmp, 64, sh);

I was aware there must be way of doing it in a single tcg invocation, but couldn't find right tcg instruction. I will apply this in v2.

Kind Regards,

Stefan

r~



reply via email to

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