From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxeZC-0000Gf-Fs for qemu-devel@nongnu.org; Mon, 30 Dec 2013 10:15:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VxeZ3-0006W0-E3 for qemu-devel@nongnu.org; Mon, 30 Dec 2013 10:15:41 -0500 Received: from mail-qc0-x230.google.com ([2607:f8b0:400d:c01::230]:35426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VxeZ3-0006Vv-9u for qemu-devel@nongnu.org; Mon, 30 Dec 2013 10:15:33 -0500 Received: by mail-qc0-f176.google.com with SMTP id i8so10914723qcq.7 for ; Mon, 30 Dec 2013 07:15:33 -0800 (PST) Sender: Richard Henderson Message-ID: <52C18E0E.1010707@twiddle.net> Date: Mon, 30 Dec 2013 07:15:26 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1388267351-31818-1-git-send-email-peter.maydell@linaro.org> <1388267351-31818-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1388267351-31818-6-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/10] target-arm: A64: Add "Floating-point data-processing (3 source)" insns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: 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 12/28/2013 01:49 PM, Peter Maydell wrote: > + /* These are fused multiply-add, and must be done as one > + * floating point operation with no rounding between the > + * multiplication and addition steps. > + * NB that doing the negations here as separate steps is > + * correct : an input NaN should come out with its sign bit > + * flipped if it is a negated-input. > + */ > + if (o1 == true) { > + gen_helper_vfp_negs(tcg_op3, tcg_op3); > + } > + > + if (o0 != o1) { > + gen_helper_vfp_negs(tcg_op1, tcg_op1); > + } > + > + gen_helper_vfp_muladds(tcg_res, tcg_op1, tcg_op2, tcg_op3, fpst); Do you really get the wrong result passing the appropriate float_muladd_negate_* constant? I realize that the A32 target doesn't do this either, but shouldn't that be cleaned up? It's certainly confusing to the reader, wondering why they aren't used... r~