From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8561 invoked by alias); 19 Feb 2015 20:45:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8528 invoked by uid 89); 19 Feb 2015 20:45:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: bin-vsp-out-02.atm.binero.net Received: from vsp-authed01.binero.net (HELO bin-vsp-out-02.atm.binero.net) (195.74.38.224) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 19 Feb 2015 20:45:32 +0000 X-Halon-ID: 3a945f3e-b878-11e4-891e-005056917f90 Authorized-sender: jiri@gaisler.se Received: from [192.168.1.20] (unknown [78.68.173.120]) by bin-vsp-out-02.atm.binero.net (Halon Mail Gateway) with ESMTPA for ; Thu, 19 Feb 2015 21:45:24 +0100 (CET) Message-ID: <54E64B65.4050906@gaisler.se> Date: Thu, 19 Feb 2015 20:45:00 -0000 From: Jiri Gaisler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH 04/23] sim/erc32: Add FPU support on x86_64 hosts. References: <1424159099-5148-1-git-send-email-jiri@gaisler.se> <1424159099-5148-5-git-send-email-jiri@gaisler.se> <20150217090529.GJ20008@vapier> In-Reply-To: <20150217090529.GJ20008@vapier> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dbN6TUe0New9CihBUPmHMbqgPBrJ1uLEM" X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00555.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dbN6TUe0New9CihBUPmHMbqgPBrJ1uLEM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 769 On 02/17/2015 10:05 AM, Mike Frysinger wrote: > On 17 Feb 2015 08:44, Jiri Gaisler wrote: >> * float.c (get_accex) access FPU control and status words on x64 >=20 > shouldn't you gut this file and use instead for a portable metho= d ? > http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fenv.h.html >=20 > at the very least, you could cut over to ... > -mike >=20 I will switch to fenv.h, but this will produce less accurate results on Intel hardware. double on SPARC V8 has 53-bit mantissa while Intel has both 53- and 64-bit, and 64-bit is default. To get accurate SPARC V8 FPU operations, the Intel FPU should be switched to 53-bit, but the fenv.h does not have an API for this. I guess we will have to live with that ... Jiri. --dbN6TUe0New9CihBUPmHMbqgPBrJ1uLEM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 884 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJU5ktlAAoJEIAIwBKmO2+bMpYP/0JKAqc/ccELG+7n3xk53AYj lP/7wdr5Fk1Dv+IjsLapoMUP94yzcbPgrvTpFqcpIRFkyD7hK9Z5sITaGZ5AkW7A Mtn1et0zHattlzLVS3TUodvdYmJIymvQchmBrGd7cSf0FoJlZRtNpnRX1YKweDGT pKwGuLlM0W1FurLrKml+51IBTzNpx/YY71aQyMWCUdRiW0aNm35laSwmh/YXVBtg fThO0fWCujEA7fzh19qPNsw0gNCz/KEMqpgzJnDM7Z0K3TAXFPSBaVS9hd7akIAx fFavGFjM76OY7bNva6cUPqWtWqmNl/pVhA2SHhU4xCBcyv4veX1CLu4+KcVxnE6O MiPr6rXp/i8PnQo91gzK6loguknyEI9SGHyrG/SFEKad5YCkbe2k8BGjEY7PJ7Qr 6BmLGqrgIb3XTcxp5ElrXWnr+7gGWd9Ca5y/Fc+r0fffZYmh+FQcdSebG36GHcgY nQiRXwMnRa4UrV/xGfu0BlKLngYst8sORpxw+qOymHvLy0Qq44tg06ie1BrMlW88 mUf3K65P9UElVB9rOLJ0e1vENqEsTZleI1ce8IjyuIHpUcwrRDO2GlAKp2rpGtCm oYdKM6OaDIYNrHIJqyTa0dCyiO52WSNDuv8OjVIVjKs12HS22Ea4lKyWPBJhTNkf cCgFKoMGRaieaHP8TWqv =Isup -----END PGP SIGNATURE----- --dbN6TUe0New9CihBUPmHMbqgPBrJ1uLEM--