From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0F3N-0006p3-Aw for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:37:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0F3I-00070U-7g for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:37:33 -0500 Received: from mail-qe0-x232.google.com ([2607:f8b0:400d:c02::232]:63230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0F3I-00070P-1Z for qemu-devel@nongnu.org; Mon, 06 Jan 2014 13:37:28 -0500 Received: by mail-qe0-f50.google.com with SMTP id 1so18621288qec.37 for ; Mon, 06 Jan 2014 10:37:27 -0800 (PST) Sender: Richard Henderson Message-ID: <52CAF7E2.9020308@twiddle.net> Date: Mon, 06 Jan 2014 10:37:22 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1389013881-15726-1-git-send-email-peter.maydell@linaro.org> <1389013881-15726-18-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1389013881-15726-18-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 17/24] target-arm: Prepare VFP_CONV_FIX helpers for A64 uses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Tom Musta , Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?ISO-8859-1?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 01/06/2014 05:11 AM, Peter Maydell wrote: > From: Will Newton > > Make the VFP_CONV_FIX helpers a little more flexible in > preparation for the A64 uses. This requires two changes: > * use the correct softfloat conversion function based on itype > rather than always the int32 one; this is possible now that > softfloat provides int16 versions and necessary for the > future conversion-to-int64 A64 variants. This also allows > us to drop the awkward 'sign' macro argument. > * split the 'fsz' argument which currently controls both > width of the input float type and width of the output > integer type into two; this will allow us to specify the > A64 64-bit-int-to-single conversion function, where the > two widths are different. > > We can also drop the (itype##_t) cast now that softfloat > guarantees that all the itype##_to_float* functions take > an integer argument of exactly the correct type. > > Signed-off-by: Will Newton > Signed-off-by: Peter Maydell > --- > target-arm/helper.c | 28 ++++++++++++++-------------- > 1 file changed, 14 insertions(+), 14 deletions(-) Reviewed-by: Richard Henderson r~