Received: from eggs.gnu.org ([2001:4830:134:3::10]:37445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1behXD-0002zc-Mj for qemu-devel@nongnu.org; Tue, 30 Aug 2016 07:48:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1behXA-0000fz-JM for qemu-devel@nongnu.org; Tue, 30 Aug 2016 07:48:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1behXA-0000fr-DR for qemu-devel@nongnu.org; Tue, 30 Aug 2016 07:48:52 -0400 References: <1472496380-19706-1-git-send-email-rth@twiddle.net> From: Paolo Bonzini Message-ID: <7e719ffd-bcbd-3486-cfe1-c5e93fb08be8@redhat.com> Date: Tue, 30 Aug 2016 13:48:48 +0200 MIME-Version: 1.0 In-Reply-To: <1472496380-19706-1-git-send-email-rth@twiddle.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/9] Improve buffer_is_zero List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: vijay.kilari@gmail.com On 29/08/2016 20:46, Richard Henderson wrote: > Changes from v2 to v3: > > * Unit testing. This includes having x86 attempt all versions of > the accelerator that will run on the hardware. Thus an avx2 host > will run the basic test 5 times (1.5sec on my laptop). > > * Drop the ppc and aarch64 specializations. I have improved the > basic integer version to the point that those vectorized versions > are not a win. > > In the case of my aarch64 mustang, the integer version is 4 times > faster than the neon version that I delete. With effort I was > able to rewrite the neon version to come to within a factor of 1.1, > but it remained slower than the integer. To be fair, gcc6 makes > very good use of ldp, so the integer path is *also* loading 16 bytes > per insn. > > I can forward my standalone aarch64 benchmark if anyone is interested. > > Note however that at least the avx2 acceleration is still very much > a win, being about 3 times faster on my laptop. Of course, it's > handling 4 times as much data per loop as the integer version, so > one can still see the overhead caused by using vector insns. > > For grins I wrote an avx512 version, if someone has a skylake upon > which to test and benchmark. That requires additional configure > checks, so I didn't bother to include it here. Thanks, queued for 2.8. Paolo