Re: [Qemu-devel] [PATCH 6/8] target/ppc: Optimize emulation of vclzw instruction

2019-06-26 Thread Richard Henderson
On 6/19/19 1:03 PM, Stefan Brankovic wrote: > Optimize Altivec instruction vclzw (Vector Count Leading Zeros Word). > This instruction counts the number of leading zeros of each word element > in source register and places result in the appropriate word element of > destination register. > > Count

[Qemu-devel] [PATCH 6/8] target/ppc: Optimize emulation of vclzw instruction

2019-06-19 Thread Stefan Brankovic
Optimize Altivec instruction vclzw (Vector Count Leading Zeros Word). This instruction counts the number of leading zeros of each word element in source register and places result in the appropriate word element of destination register. Counting is to be performed in four iterations of for loop(on

Re: [Qemu-devel] [PATCH 6/8] target/ppc: Optimize emulation of vclzw instruction

2019-06-17 Thread Stefan Brankovic
On 6.6.19. 20:34, Richard Henderson wrote: On 6/6/19 5:15 AM, Stefan Brankovic wrote: +for (i = 0; i < 2; i++) { +if (i == 0) { +/* Get high doubleword element of vB in avr. */ +get_avr64(avr, VB, true); +} else { +/* Get low doubleword e

Re: [Qemu-devel] [PATCH 6/8] target/ppc: Optimize emulation of vclzw instruction

2019-06-06 Thread Richard Henderson
On 6/6/19 5:15 AM, Stefan Brankovic wrote: > +for (i = 0; i < 2; i++) { > +if (i == 0) { > +/* Get high doubleword element of vB in avr. */ > +get_avr64(avr, VB, true); > +} else { > +/* Get low doubleword element of vB in avr. */ > +

[Qemu-devel] [PATCH 6/8] target/ppc: Optimize emulation of vclzw instruction

2019-06-06 Thread Stefan Brankovic
Optimize Altivec instruction vclzw (Vector Count Leading Zeros Word). This instruction counts the number of leading zeros of each word element in source register and places result in the appropriate word element of destination register. We perform counting in two iterations of for loop(one for eac