Received: from eggs.gnu.org ([2001:4830:134:3::10]:38355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPPRs-00008s-P8 for qemu-devel@nongnu.org; Fri, 06 Jan 2017 03:00:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPPRo-0002Me-Lu for qemu-devel@nongnu.org; Fri, 06 Jan 2017 03:00:28 -0500 Date: Fri, 6 Jan 2017 18:53:02 +1100 From: David Gibson Message-ID: <20170106075302.GN13763@umbus.fritz.box> References: <1483615579-17618-1-git-send-email-nikunj@linux.vnet.ibm.com> <1483615579-17618-4-git-send-email-nikunj@linux.vnet.ibm.com> <20170105220117.GE13763@umbus.fritz.box> <20170106045746.GC12420@in.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KCXyoJ//PRyfzsc9" Content-Disposition: inline In-Reply-To: <20170106045746.GC12420@in.ibm.com> Subject: Re: [Qemu-devel] [PATCH 03/14] target-ppc: Use float64 arg in helper_compute_fprf() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: Nikunj A Dadhania , qemu-ppc@nongnu.org, rth@twiddle.net, qemu-devel@nongnu.org --KCXyoJ//PRyfzsc9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 06, 2017 at 10:27:46AM +0530, Bharata B Rao wrote: > On Fri, Jan 06, 2017 at 09:01:17AM +1100, David Gibson wrote: > > On Thu, Jan 05, 2017 at 04:56:08PM +0530, Nikunj A Dadhania wrote: > > > From: Bharata B Rao > > >=20 > > > Use float64 argument instead of unit64_t in helper_compute_fprf() > > > This allows code in helper_compute_fprf() to be reused later to > > > work with float128 argument too. > > >=20 > > > Signed-off-by: Bharata B Rao > > > Signed-off-by: Nikunj A Dadhania > >=20 > > Uh.. how can this possibly be correct, without updating the callers of > > helper_compute_fprf()? >=20 > It works currently because uint64_t argument that is passed by the > callers is interpreted as float64 arg (via farg.d). >=20 > Let me see if there is a cleaner way of doing this. Casting the > callers with right floatXX type seems to be the easiest way. > The requirement here is to ensure that >=20 > helper_compute_fprf_float16(CPUPPCState *env, float16 arg) > helper_compute_fprf_float32(CPUPPCState *env, float32 arg) > helper_compute_fprf_float64(CPUPPCState *env, float64 arg) > helper_compute_fprf_float128(CPUPPCState *env, float128 arg) >=20 > get autogenerated with right floatXX argument so that it can directly > be used with required routines (like floatXX_is_any_nan etc) w/o > needing the CPU_DoubleU or other intermediate forms. Ok. I think some of this explanation needs to go into the commit message. --=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 --KCXyoJ//PRyfzsc9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYb0zaAAoJEGw4ysog2bOSR2MP/RjaCvTa9UoXT3V+NjK+u3l7 vsRXK/gl8bu4Uz4Fl9ftcYAk7P8TqFn9CW9DpJMEsxfVFvRXTZaGfNRFLgfuf/gk EteTexCproByA093MQCg8S+Rlh0QAk4UH3pFXLkmH3oX4MS0ZHjdcpj5ACPdtl9u yXES3uSQUiJ2uuoi66IWw9dKWo2d+eYt8vUFWs1GZdxpCuFTEsEG3LFr7KabShqA EJZrY0lC+Tw/A9MK0JRHc2aknojl/kGIxiZ79+lsi+1EDSteXoSOPKbf16KnU6aD ddSbuXjrNnSJTLL9eg4yIjGnrHV/xXy3EwBUSjwnHsYW89EwTqTgz1um8PMzL7pc UAH3fvZ/MeisuXhqG8J4fo+Foo5LlMVJUfBk/7/aMAhKpxwxtueGi/ezp/8h/xtB M5o8s1ZK/nQwaF8W9n3iyTx0Yner0gta7fPozDpf6cvxVLY/qH57xYzgNAJYxVsG GFGG4BQJXfQmd8Sl1tqKwZUU++dgsTrp+uMSJfW93fEtz0A6BiJyFbg5hN+oVFOs PdGPZUlmSKhGfQ5Vek687NOMrTzXlRPM+ahaOv4ShW1lzqg6lVOWE9WWPsAjy6Uh FTjjUbizwm91rzIZuuklxCZRMoFlaEafkPEM7XSn/pawE3RPZthLvDJSAjkNdKoA Zh3CV0namaXvliAvLmGB =1FrK -----END PGP SIGNATURE----- --KCXyoJ//PRyfzsc9--