Received: from eggs.gnu.org ([2001:4830:134:3::10]:56871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSzzQ-00026W-Id for qemu-devel@nongnu.org; Fri, 29 Jul 2016 01:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSzzM-0004xy-JE for qemu-devel@nongnu.org; Fri, 29 Jul 2016 01:05:40 -0400 Date: Fri, 29 Jul 2016 14:56:14 +1000 From: David Gibson Message-ID: <20160729045614.GN2588@voom.fritz.box> References: <579ada3d.8625620a.cd2a2.f04b@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ie5iOtK4e9kgqh2F" Content-Disposition: inline In-Reply-To: <579ada3d.8625620a.cd2a2.f04b@mx.google.com> Subject: Re: [Qemu-devel] [PATCH v1 4/8] target-ppc: add vabsdu[b, h, w] instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Sandipan Das , Benjamin Herrenschmidt , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Nikunj A Dadhania , aneesh.kumar@linux.vnet.ibm.com, bharata@linux.vnet.ibm.com --Ie5iOtK4e9kgqh2F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 29, 2016 at 09:53:14AM +0530, Richard Henderson wrote: >

On Jul 29, 2016 09:16, David Gibson <david@gibson.dropb= ear.id.au> wrote:
> > So, I noticed this and was also concerned, but I more or less
> > convinced myself that it would still work, by the magic of 2's
> > complement, as long as sizeof(int) >=3D 4.

>

Consider arguments 0xffffffff, 0.  The unsigned absol= ute difference should be 0xffffffff.  With abs(3) we get 1.

Ah, good point, I didn't think that through properly. Btw, your mailer seems to have screwed up and sent this as html only. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --Ie5iOtK4e9kgqh2F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXmuHuAAoJEGw4ysog2bOSEgUP/30GRht5YswjmmExS7aE0m9K gR7+b9zo0p4Hq49nQO/YMO6Gz88bbJ+jIWQpg+yK2AcYSE7rM4Dhf4gmGf04kUFu taPUOpW5T7AwGCvivGg1uAk/26g7HR2aJbNbBN8L6Dg7cUHMUNNA0BRZRri2WSaL KMdazcayYMFkJMKCeDZnbxT+mbg4unQ1OgAi5KWcVm4dLUu5hfK2Bm5wZO6WmI9G OHl2Of5eEBR5VSK0/YJN/Mq36PO4LYEOU973z2qrS2aNZ2ZAKHY1DYAZcUsN9881 cQc4ppRbdwpkSR2EoQ6Cu7L1PqABsPnKlr+uZQ0fK8XlCp8qLbHzZoS5hvYnytsi D1aIFtytrxS/Bd1+qAkEdnnowuFpfaUgbeLWZPmurZgcGCFHKBZE5Hr2LRg6PiEb L2t6L9jY7Bm9DOHr6l9laLctT5Yvz21dQ/zsfSbYQLU22Ms6dBzcOVbq1EigpnL2 yy1KJtedUUqWQUsqGkTex72zTLTzaCLVIPuZaUY+AplNBTPvWy10yqm08ajrQ2s6 +dJW0IyTELlPrjQSFjrcG0D9Kuti73KXJbKM3gKC8ieSe3ddA7OjTLmg8C5YyCFP Y488ZMRTiJ0+NdVbzRDfKX6o77V166Cf6uaV0sop5t/6ulDw333RcfK1WB2fgs9M 91WuAkOxMy5TwTciPljb =Su+/ -----END PGP SIGNATURE----- --Ie5iOtK4e9kgqh2F--