Received: from eggs.gnu.org ([2001:4830:134:3::10]:35390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgAty-0002ue-7M for qemu-devel@nongnu.org; Fri, 11 Aug 2017 10:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgAtu-0004Nn-4B for qemu-devel@nongnu.org; Fri, 11 Aug 2017 10:27:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgAtt-0004NI-Tz for qemu-devel@nongnu.org; Fri, 11 Aug 2017 10:26:58 -0400 References: From: Paolo Bonzini Message-ID: Date: Fri, 11 Aug 2017 16:26:54 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target/i386: fix phminposuw in-place operation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joseph Myers , qemu-devel@nongnu.org, rth@twiddle.net, ehabkost@redhat.com On 11/08/2017 16:23, Joseph Myers wrote: > The SSE4.1 phminposuw instruction finds the minimum 16-bit element in > the source vector, putting the value of that element in the low 16 > bits of the destination vector, the index of that element in the next > three bits and zeroing the rest of the destination. The helper for > this operation fills the destination from high to low, meaning that > when the source and destination are the same register, the minimum > source element can be overwritten before it is copied to the > destination. This patch fixes it to fill the destination from low to > high instead, so the minimum source element is always copied first. > This fixes one gcc test failure in my GCC 6-based testing (and so > concludes the present sequence of patches, as I don't have any further > gcc test failures left in that testing that I attribute to QEMU bugs). > > Signed-off-by: Joseph Myers Nice, thanks for the patches! Queued too. Paolo